/**
* 验证手机号
*
* @param tel
* @return
*/
public static boolean isPhone(String tel) {
Pattern p1 = Pattern
.compile("^((13[0-9])|(15[0-9])|(18[0-3,5-9]))\\d{8}$");
boolean b = p1.matcher(tel).matches();
return b;
}
* 验证手机号
*
* @param tel
* @return
*/
public static boolean isPhone(String tel) {
Pattern p1 = Pattern
.compile("^((13[0-9])|(15[0-9])|(18[0-3,5-9]))\\d{8}$");
boolean b = p1.matcher(tel).matches();
return b;
}