## 正则表达式 ### 匹配所有号码(手机卡 + 数据卡 + 上网卡) [`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7[^29\D](?(?<=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$`](https://www.debuggex.com/r/tLZQT3k0DZqmnP8o) ### 匹配所有支持短信功能的号码(手机卡 + 上网卡) [`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7[^29\D](?(?<=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|6[567]\d{2}|4[579]\d{2})\d{6}$`](https://www.debuggex.com/r/VbgdCcGSZcr9Kcgi) ### 手机卡 #### 匹配所有 [`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7[^0129\D](?(?<=4)(?:0\d|1[0-2]|9\d)|\d{2})|9[189]\d{2}|66\d{2})\d{6}$`](https://www.debuggex.com/r/YbIeQ_M4s88_9NHG) #### 匹配中国移动 [`^(?:\+?86)?1(?:3[^0-3\D](?(?<=4)[^9\D]|\d)|5[^3-6\D]\d|8[23478]\d|(?:78|98)\d)\d{7}$`](https://www.debuggex.com/r/_oGTPFpiqUNdaP8t) #### 匹配中国联通 [`^(?:\+?86)?1(?:3[0-2]|[578][56]|66)\d{8}$`](https://www.debuggex.com/r/n8onnyBbDV-hN7mU) #### 匹配中国电信 [`^(?:\+?86)?1(?:3[34](?(?<=4)(?:9)|\d)\d|53\d{2}|8[019]\d{2}|7[347](?(?<=4)(?:0[0-5])|\d{2})|9[19]\d{2})\d{6}$`](https://www.debuggex.com/r/r3m8n91BeWXfncGO) #### 匹配北京船舶通信导航有限公司(海事卫星通信) [`^(?:\+?86)?1749\d{7}$`](https://www.debuggex.com/r/Ewdta8YJfreoXguf) #### 工业和信息化部应急通信保障中心(应急通信) [`^(?:\+?86)?174(?:0[6-9]|1[0-2])\d{6}$`](https://www.debuggex.com/r/ueZ3m3NQr400LWmF) ### 虚拟运营商 #### 匹配所有 [`^(?:\+?86)?1(?:7[01]|6[57])\d{8}$`](https://www.debuggex.com/r/wtY28Kvn-Ksu-Dcv) #### 匹配中国移动 [`^(?:\+?86)?1(?:65\d|70[356])\d{7}$`](https://www.debuggex.com/r/eXKVlO3E5W9wn5RJ) #### 匹配中国联通 [`^(?:\+?86)?1(?:70[4789]|71\d|67\d)\d{7}$`](https://www.debuggex.com/r/bKyapelcUxT0KZXb) #### 匹配中国电信 [`^(?:\+?86)?170[0-2]\d{7}$`](https://www.debuggex.com/r/kIhclgXmlEF57w2r) ### 物联网数据卡 #### 匹配所有 [`^(?:\+?86)?14(?:[14]0|[68]\d)\d{9}$`](https://www.debuggex.com/r/95embzRGAR76zPIV) #### 匹配中国移动 [`^(?:\+?86)?14(?:40|8\d)\d{9}$`](https://www.debuggex.com/r/lVn_7eMXVOEiXXK_) #### 匹配中国联通 [`^(?:\+?86)?146\d{10}$`](https://www.debuggex.com/r/esYULNSOSyXxoACe) #### 匹配中国电信 [`^(?:\+?86)?1410\d{9}$`](https://www.debuggex.com/r/9g8nJMl_hWpaGLTi) ### 上网卡 #### 匹配所有 [`^(?:\+?86)?14[579]\d{8}$`](https://www.debuggex.com/r/IHFTe5Z099QxCyvb) #### 匹配中国移动 [`^(?:\+?86)?147\d{8}$`](https://www.debuggex.com/r/zu-yH27vlHT3oSJ7) #### 匹配中国联通 [`^(?:\+?86)?145\d{8}$`](https://www.debuggex.com/r/4YLUXlvZD6VcvPtQ) #### 匹配中国电信 [`^(?:\+?86)?149\d{8}$`](https://www.debuggex.com/r/uzvr1c395PsqG-K6) ## 在线测试/调试 [https://regex101.com](https://regex101.com/) [https://regexr.com](https://regexr.com/) [https://www.debuggex.com](https://www.debuggex.com/)(PCRE 在线视觉化) ## 规则 #### 手机卡 - 基础运营商 * 支持语音通话 / 短信 / 数据流量 * 号码长度 11 位 | 运营商\[1\] | 号段 | | --- | --- | | 中国移动 | 134-0~8 / 135 / 136 / 137 / 138 / 139 / 150 / 151 / 152 / 157 / 158 / 159 / 178 / 182 / 183 / 184 / 187 / 188 / 198 | | 中国联通 | 130 / 131 / 132 / 155 / 156 / 166 / 175 / 176 / 185 / 186 | | 中国电信 | 133 / 134-9 / 153 / 173 / 174-00~05 / 177 / 180 / 181 / 189 / 191 / 199 | | 北京船舶通信导航有限公司(海事卫星通信) | 174-9 | | 工业和信息化部应急通信保障中心(应急通信) | 174-06~12 | #### 手机卡 - 虚拟运营商 * 支持语音通话 / 短信 / 数据流量 * 号码长度 11 位 | 运营商\[1\] | 号段 | | --- | --- | | 中国移动 | 165 / 1703 / 1705 / 1706 | | 中国联通 | 167 / 1704 / 1707 / 1708 / 1709 / 171 | | 中国电信 | 1700 / 1701 / 1702 | #### 物联网数据卡 * 支持数据流量 * 号码长度 13 位 | 运营商\[1\] | 号段 | | --- | --- | | 中国移动 | 1440X / 148XX | | 中国联通 | 146XX | | 中国电信 | 1410X | #### 上网卡 * 支持语音通话(部分) / 短信 / 数据流量 * 号码长度 11 位 | 运营商\[1\] | 号段 | 语音通话\[2\] | | --- | --- | --- | | 中国移动 | 147 | 支持 | | 中国联通 | 145 | 不支持 | | 中国电信 | 149 | 支持 | 根据工信部相关文件,145 / 147 / 149 号段允许提供语音通话功能,运营商可以根据用户需要自主决定是否提供语音通话功能。目前 147 / 149 号段已经有支持语音通话的号码卡放出。