string result = Regex.Replace(input, @"[^w]*", String.Empty);
Regex rgx = new Regex("[^a-zA-Z0-9 -]"); str = rgx.Replace(str, "");