匹配移动,联通,电信手机号码正则表达式
View Code
1 中国移动 134.135.136.137.138.139.150.151.152.157.158.159.187.188 ,147(数据卡)
2 中国联 通130.131.132.155.156.185.186
3 中国电信133.153.180.189
4 CDMA 133,153
5
6 正 则如下:
7
8 /// <summary>
9 /// 匹配移动手机号
10 /// </summary>
11 public const string PATTERN_CMCMOBILENUM = @"^1(3[4-9]|5[012789]|8[78])\d{8}$";
12 /// <summary>
13 /// 匹配电信手机号
14 /// </summary>
15 public const string PATTERN_CTCMOBILENUM = @"^18[09]\d{8}$";
16 /// <summary>
17 /// 匹配联通手机号
18 /// </summary>
19 public const string PATTERN_CUTMOBILENUM = @"^1(3[0-2]|5[56]|8[56])\d{8}$";
20 /// <summary>
21 /// 匹配CDMA手机号
22 /// </summary>
23 public const string PATTERN_CDMAMOBILENUM = @"^1[35]3\d{8}$";