How do I remove all non alphanumeric characters from a string except dash python code example
Example: How do I remove all non alphanumeric characters from a string?
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");