I need to use Regex.Replace to remove all numbers and signs from a string.
Regex.Replace
Example input: 123- abcd33 Example output: abcd
123- abcd33
abcd
Try the following:
var output = Regex.Replace(input, @"[d-]", string.Empty);
The d identifier simply matches any digit character.
d
1.4m articles
1.4m replys
5 comments
57.0k users