/// 中文 |
public static bool IsChinese ( string source ) |
{ |
return Regex.IsMatch ( source, @"^[\u4e00-\u9fa5]+$" , RegexOptions.IgnoreCase ); |
} |
public static bool hasChinese ( string source ) |
{ |
return Regex.IsMatch ( source, @"[\u4e00-\u9fa5]+" , RegexOptions.IgnoreCase ); |
} |
by: 发表于:2018-01-31 15:12:04 顶(0) | 踩(0) 回复
??
回复评论