匹配移动,联通,电信手机号码正则表达式

匹配移动,联通,电信手机号码正则表达式
原文: 匹配移动,联通,电信手机号码正则表达式

ContractedBlock.gif ExpandedBlockStart.gif 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 ///
9 /// 匹配移动手机号
10 ///

11 public const string PATTERN_CMCMOBILENUM = @" ^1(3[4-9]|5[012789]|8[78])\d{8}$ " ;
12 ///
13 /// 匹配电信手机号
14 ///

15 public const string PATTERN_CTCMOBILENUM = @" ^18[09]\d{8}$ " ;
16 ///
17 /// 匹配联通手机号
18 ///

19 public const string PATTERN_CUTMOBILENUM = @" ^1(3[0-2]|5[56]|8[56])\d{8}$ " ;
20 ///
21 /// 匹配CDMA手机号
22 ///

23 public const string PATTERN_CDMAMOBILENUM = @" ^1[35]3\d{8}$ " ;
posted on 2014-12-12 10:02 NET未来之路 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lonelyxmas/p/4159097.html

你可能感兴趣的:(匹配移动,联通,电信手机号码正则表达式)