2020年正则表达式匹配三大运营商手机号码,附各运营商号段

号段:

移动号段 134,135,136,137,138,139,147,148,150,151,152,157,158,159,172,178,182,183,184,187,188,198,197,195,1703,1705,1706,165,1440
电信号段 133,149,153,173,177,180,181,189,199,193,191,190,1700,1701,1702,162,1410
联通号段 130,131,132,145,146,155,156,166,175,176,185,186,196,1704,1707,1708,1709,171,167

正则表达式:

  ^134[0-8]\d{7}$|^(?:13[5-9]|147|15[0-27-9]|178|1703|1705|1706|18[2-478])\d{7,8}$移动

^(?:13[0-2]|145|15[56]|176|167|1704|1707|1708|1709|171|18[56])\d{7,8}|$联通

^(?:133|149|153|162|1700|1701|1702|173|177|18[019]|19[0139])\d{7,8}$电信

2020年1月10日更新

你可能感兴趣的:(基础)