public static boolean isContainChinese(String str) {
Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
Matcher m = p.matcher(str);
if (m.find()) {
return true;
}
return false;
}

posted on 2018-05-24 17:05  ALT_LB  阅读(3218)  评论(0编辑  收藏  举报