public class YanZhengUtils { public static boolean isMobileNO(String mobile) { //正则表达式 String telRegex = "^((13[0-9])|(14[5,7,9])|(15[^4])|(18[0-9])|(17[0,1,3,5,6,7,8]))\\d{8}$"; //判断 if (TextUtils.isEmpty(mobile)) return false; else return mobile.matches(telRegex); } }
手机号正则判断
最新推荐文章于 2024-06-04 14:30:20 发布