java正则表达式校验字符串是否是汉字
public static Boolean validateName(String name){
String regex = "[\u4e00-\u9fa5]+";
return name.matches(regex);
}
public static Boolean validateName(String name){
String regex = "[\u4e00-\u9fa5]+";
return name.matches(regex);
}