正则,校验中文、数字、英文[java实现]
/**
* 校验中文数字英文
*
* @param str
* @return
*/
public static boolean isLetterDigitOrChinese(String str) {
String regex = "^[a-z0-9A-Z\u4e00-\u9fa5]+$";
return str.matches(regex);
}
/**
* 校验中文数字英文
*
* @param str
* @return
*/
public static boolean isLetterDigitOrChinese(String str) {
String regex = "^[a-z0-9A-Z\u4e00-\u9fa5]+$";
return str.matches(regex);
}