java验证手机号
public static boolean verifyPhonenumber(String visitedPhonenumber) {
String regex = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";
return verifyByStr(visitedPhonenumber, regex);
}
public static boolean verifyByStr(String info, String regex) {
Matcher m = Pattern.compile(regex).matcher(info);
return m.matches();
}