public static boolean isMobileNumber(String mobiles) { return Pattern .compile("^((13[0-9])|(15[^4,\\D])|(18[^1^4,\\D]))\\d{8}") .matcher(mobiles).matches(); }原文链接:https://www.f2er.com/regex/362006.html
public static boolean isMobileNumber(String mobiles) { return Pattern .compile("^((13[0-9])|(15[^4,\\D])|(18[^1^4,\\D]))\\d{8}") .matcher(mobiles).matches(); }原文链接:https://www.f2er.com/regex/362006.html