fails when I try Regex.Replace() method.
how can i fix it?
Replace.Method (String, String, MatchEvaluator, RegexOptions)
I tr
You appear to have a lone "*" in your regex. That is not correct. A "*" does not mean "anything" (like in a file spec), but "the previous can be repeated 0 or more times".
If you want "anything" you have to write ".*". The "." means "any single character", which will then be repeated.
Edit:
The same would happen if you use other quantifiers by their own: "+", "?" or "{n,m}" (where n and m are numbers that specify lower and upper limit).
which might explain the text or the error message you get.