最强验证手机号是否合法正则

来源:互联网 发布:即时通讯软件怎么开发 编辑:程序博客网 时间:2024/06/05 06:33

/**
* 验证手机号码是否合法
*
* @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}$";