1 public static bool ContainsChinese(string text) 2 { 3 if (string.IsNullOrEmpty(text)) 4 return false; 5 string pattern = "[\u4e00-\u9fbb]"; 6 return Regex.IsMatch(text, pattern); 7 }
C#匹配中文
猜你喜欢
转载自www.cnblogs.com/luguoshuai/p/9809649.html
今日推荐
周排行