62,620
社区成员
发帖
与我相关
我的任务
分享
static String regEx = "[\u4e00-\u9fa5]";
static Pattern pat = Pattern.compile(regEx);
public static boolean isContainsChinese(String str)
{
Matcher matcher = pat.matcher(str);
boolean flg = false;
if (matcher.find())
{
flg = true;
}
return flg;
}