public static boolean chechCertificateNum(String s_aStr) {//验正身份证
String has_x="([0-9]{17}([0-9]|X|x))|([0-9]{15})";
Pattern p = Pattern.compile(has_x);
return p.matcher(s_aStr).matches();
}
public static boolean checkEmail(String email) {//验证邮箱
Pattern pattern = Pattern.compile("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
Matcher matcher = pattern.matcher(email);
return matcher.matches();
}
public static boolean isMobileNO(String mobiles){//验正手机号
Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
Matcher m = p.matcher(mobiles);
return m.matches();
}