Matching mobile/Unicom/Telecom mobile phone number Regular Expression Summary

Source: Internet
Author: User

China Mobile 134.135.136.137.138.139.150.151.152.157.158.159.187.188, 147 (data card)
China Unicom 130.131.132.155.156.185.186
China Telecom 133.153.180.189
CDMA 1, 133,153
The preceding example is as follows:
Copy codeThe Code is as follows:
/// <Summary>
/// Match the mobile phone number
/// </Summary>
Public const string PATTERN_CMCMOBILENUM = @ "^ 1 (3 [4-9] | 5 [012789] | 8 [78]) \ d {8} $ ";
/// <Summary>
/// Match the China Telecom mobile phone number
/// </Summary>
Public const string PATTERN_CTCMOBILENUM = @ "^ 18 [09] \ d {8} $ ";
/// <Summary>
/// Match the China Unicom mobile phone number
/// </Summary>
Public const string PATTERN_CUTMOBILENUM = @ "^ 1 (3 [0-2] | 5 [56] | 8 [56]) \ d {8} $ ";
/// <Summary>
/// Match the CDMA mobile phone number
/// </Summary>
Public const string PATTERN_CDMAMOBILENUM = @ "^ 1 [35] 3 \ d {8} $ ";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.