代码如下:
public static boolean isMobileNO(String mobile) {
Pattern p = Pattern
.compile("^((13[0-9])|(15[^4,\\D])|(18[0-9]))\\d{8}$");
Matcher m = p.matcher(mobile);
return m.matches();
}
上一篇:正则表达式如何同时匹配中英文
下一篇:JS常用正则表达式的示例分析