How can you strip non-ASCII characters from a string? (in C#)
I used this regex expression:
string s = "søme string"; Regex regex = new Regex(@"[^a-zA-Z0-9\s]", (RegexOptions)0); return regex.Replace(s, "");