java如何验证手机号码
解决方法:
Pattern pattern = Pattern.compile("(?<!\\d)(?:(?:1[23456789]\\d{9}))(?!\\d)");
Matcher matcher = pattern.matcher("18475920407");
StringBuffer bf = new StringBuffer(64);
while (matcher.find()) {
String phone= matcher.group();
}
本文链接:http://www.yayihouse.com/yayishuwu/chapter/1566