private String chineseStr(String str){
Pattern p = null;
Matcher m = null;
String value = "";
p = Pattern.compile("[\u4e00-\u9fa5]");
m = p.matcher(str);
if(StringUtils.isNotBlank(str)){
while (m.find()) {
if(m.group(0)!=null){
value += m.group(0);
}
}
}
return value;
}
浙公网安备 33010602011771号