I\'d like to write a regex that would remove the special characters on following basis:
@
&
use a character set [charsgohere]
[charsgohere]
string removableChars = Regex.Escape(@"@&'()<>#"); string pattern = "[" + removableChars + "]"; string username = Regex.Replace(username, pattern, "");