public static boolean isCellphone(String str) {
Pattern pattern = Pattern.compile("((13[0-9])|(14[5,7,9])|(15[4])|(18[0-9])|(17[0,1,3,5,6,7,8]))\d{8}$");
Matcher matcher = pattern.matcher(str);
return matcher.matches();
}
04-26
04-26
04-26
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交