标签:style bsp mpi one ret phone enum match pat
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; }
标签:style bsp mpi one ret phone enum match pat
原文地址:http://www.cnblogs.com/halo-yang/p/7392752.html