public static string TrimNonAscii(string value) { string pattern = "[^ -~]+"; Regex reg_exp = new Regex(pattern); return reg_exp.Replace(value, ""); }
271100cookie-checkC# Trim non ASCII characters
public static string TrimNonAscii(string value) { string pattern = "[^ -~]+"; Regex reg_exp = new Regex(pattern); return reg_exp.Replace(value, ""); }