最强验证手机号是否合法正则
/**
* 验证手机号码是否合法
*
* @param phone
* @return 是否合法
*/
/** * 中国移动 134.135.136.137.138.139.150.151.152.157.158.159.187.188 ,147(数据卡) */
public static String regex_mobile = "^1(3[4-9]|47|5[012789]|8[78]|82)\\d{8}$";
/** * 中国联通 130.131.132.155.156.185.186 */
public static String regex_unicom = "^1(3[0-2]|5[56]|8[56]|45)\\d{8}$";
/** * 中国电信 133.153.180.189 */
public static String regex_telecom = "^1([35]3|8[09])\\d{8}$";
/** * 小灵通 */
public static String regex_phs = "^0[1-9]{1}\\d{9,10}$";
还没有评论,来说两句吧...