判断手机号码的正则表达式

 public static boolean isMobileNo(String mobiles) {
String telRegex = "[1][3578]\\d{9}";
if (TextUtils.isEmpty(mobiles)) {
return false;
} else {
return mobiles.matches(telRegex);
}
}

你可能感兴趣的:(算法,正则,手机号码)