private static Regex _compiledUnicodeRegex = new Regex(@"[^\u0000-\u007F]", RegexOptions.Compiled);
public static String StripUnicodeCharactersFromString(string inputValue)
{
return _compiledUnicodeRegex.Replace(inputValue, String.Empty);
}
public static String StripUnicodeCharactersFromString(string inputValue)
{
return _compiledUnicodeRegex.Replace(inputValue, String.Empty);
}
No comments:
Post a Comment