手机号验证

以下是三大运营商的号段分布:

*移动号段:134,135,136,137,138,139,147,150,151,152,157,158,159,170,178,182,183,184,187,188,198

*联通号段:130,131,132,145,155,156,166,170,171,175,176,185,186

*电信号段:133,149,153,170,173,177,180,181,189,199

由三大运营商的号段分布的出正则表达式:

regex = "^((13[0-9])|(14[5,7,9])|(15[^4])|(166)|(18[0-9])|(17[0,1,3,5,6,7,8])|(19[8,9]))[0-9]{8}$"

原文:https://blog.csdn.net/big_data1/article/details/86510950

更新199、198、166号段验证

相关推荐