Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手机号码段不全, 不支持 170, 177, 166, 198, 199等 #1

Closed
zyz opened this issue Aug 3, 2018 · 0 comments
Closed

手机号码段不全, 不支持 170, 177, 166, 198, 199等 #1

zyz opened this issue Aug 3, 2018 · 0 comments
Assignees
Labels
task at issue

Comments

@zyz
Copy link

zyz commented Aug 3, 2018

手机号码段大全(最新)
//手机号码
//移动:134,135,136,137,138,139,147,148,150,151,152,157,158,159,172,178,182,183,184,187,188,198
//联通:130,131,132,145,146,155,156,166,171,175,176,185,186
//电信:133,149,153,173,174,177,180,181,189,199
https://www.cnblogs.com/zengxiangzhan/p/phone.html
https://blog.csdn.net/ONLYMETAGAIN/article/details/80570415

MobilePhoneHelper.cs
//手机号码
//移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188
//联通:130,131,132,152,155,156,185,186
//电信:133,1349,153,180,189
private static readonly Regex MOBILE_Expression = new Regex("^1(3[0-9]|5[0-35-9]|8[025-9])\d{8}$", RegexOptions.Singleline | RegexOptions.CultureInvariant | RegexOptions.Compiled);

    private static readonly Regex CM_Expression = new Regex("^1(34[0-8]|(3[5-9]|5[017-9]|8[278])\\d)\\d{7}$", RegexOptions.Singleline | RegexOptions.CultureInvariant | RegexOptions.Compiled);
    private static readonly Regex CU_Expression = new Regex("^1(3[0-2]|5[256]|8[56])\\d{8}$", RegexOptions.Singleline | RegexOptions.CultureInvariant | RegexOptions.Compiled);

private static readonly Regex CT_Expression = new Regex("^1((33|53|8[09])[0-9]|349)\d{7}$", RegexOptions.Singleline | RegexOptions.CultureInvariant | RegexOptions.Compiled);

@vla vla added the task at issue label Aug 14, 2018
@vla vla self-assigned this Aug 14, 2018
@vla vla mentioned this issue Aug 14, 2018
3 tasks
@vla vla closed this as completed Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task at issue
Projects
None yet
Development

No branches or pull requests

2 participants