c# get only alphanumeric from string code example
Example: c# filter non alphanumeric characters
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");
Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");