/*
*手机号的判断
*
* */
public static boolean isMobileNo(String telNo){
if(!TextUtils.isEmpty(telNo)){
Pattern pattern = Pattern.compile("^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8]))\\d{8}$");
Matcher m = pattern.matcher(telNo);
return m.matches();
}
return false;
}
转载于:https://my.oschina.net/meetthebetteryour/blog/607879