会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
老张
博客园
首页
新随笔
联系
订阅
管理
2016年6月16日
手机号正则
摘要: Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,2,3,5-9])|(17[0-9])|(14[5,7]))\\d{8}$"); Matcher m = p.matcher(mobile); // 手机号匹配失败 if (!m.matches()) { ...
阅读全文
posted @ 2016-06-16 17:41 woshizhangmoumou
阅读(156)
评论(0)
推荐(0)
编辑
公告