I want to replace a string with wildcard but it doesn\'t work.
The string looks like \"some-string-8\"
I wrote
sed -i \'s/string-*/string-0/g
So, the concept of a "wildcard" in Regular Expressions works a bit differently. In order to match "any character" you would use "." The "*" modifier means, match any number of times.