1 ///2 /// 删除字符串中的中文 3 /// 4 public static string Delete中文(string str) 5 { 6 string retValue = str; 7 if (System.Text.RegularExpressions.Regex.IsMatch(str, @"[\u4e00-\u9fa5]")) 8 { 9 retValue = string.Empty;10 var strsStrings = str.ToCharArray();11 for (int index = 0; index < strsStrings.Length; index++)12 {13 if (strsStrings[index] >= 0x4e00 && strsStrings[index] <= 0x9fa5)14 {15 continue;16 }17 retValue += strsStrings[index];18 }19 }20 return retValue;21 }