public boolean checkPhone(String phoneNum){ Pattern pattern = Pattern.compile("1[1-9][0-9]{9}"); Matcher matcher = pattern.matcher(phoneNum); if (matcher.find()){ return true; } return false; }
手机号的检测
原文:http://www.cnblogs.com/halo-yang/p/7392752.html