public static boolean isContainChinese(String str) {
Pattern p = Pattern.compile("[u4e00-u9fa5]");
Matcher m = p.matcher(str);
if (m.find()) {
return true;
}
return false;
}
public static boolean isContainChineseSymbol(String str) {
Pattern p = Pattern.compile("[uFF01]|[uFF0C-uFF0E]|[uFF1A-uFF1B]|[uFF1F]|[uFF08-uFF09]|[u3001-u3002]|[u3010-u3011]|[u201C-u201D]|[u2013-u2014]|[u2018-u2019]|[u2026]|[u3008-u300F]|[u3014-u3015]");
Matcher m = p.matcher(String.valueOf(str));
if (m.find()) {
return true;
}
return false;
}