I\'m completely incapable of regular expressions, and so I need some help with a problem that I think would best be solved by using regular expressions.
I have list
[^a-zA-Z0-9] is a character class matches any non-alphanumeric characters.
[^a-zA-Z0-9]
Alternatively, [^\w\d] does the same thing.
[^\w\d]
Usage:
string regExp = "[^\w\d]"; string tmp = Regex.Replace(n, regExp, "");