Ming-Yang-Xu

java电话号验证

public static void main(String args[]) throws Exception {

  Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");

   Matcher m = p.matcher("15811566026"); System.out.println(m.matches()+"---");

}

posted on 2017-06-19 17:35  经典-1992  阅读(75)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章: