/**
* 是否包含汉字
*
* @param str
* @return
*/
public static boolean isContainChinese(String str) {
Matcher m = Pattern.compile("[\u4e00-\u9fa5]").matcher(str);
if (m.find()) {
return true;
}
return false;
}
* 是否包含汉字
*
* @param str
* @return
*/
public static boolean isContainChinese(String str) {
Matcher m = Pattern.compile("[\u4e00-\u9fa5]").matcher(str);
if (m.find()) {
return true;
}
return false;
}