Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

public class PhoneFormatCheckUtils {
public static boolean isMobile(String mobile) {
String regex = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(mobile);
return m.matches();
}
}
java学习交流资料分享群862308434,欢迎萌新大佬们的加入。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/192463.html原文链接:https://javaforall.net