Skip to content

Commit ba3fc14

Browse files
committed
Add support for 162 / 193 prefix.
1 parent 4d7dedb commit ba3fc14

File tree

4 files changed

+85
-78
lines changed

4 files changed

+85
-78
lines changed

POSIX-CN.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,40 @@
2828
-->
2929

3030
<!--
31-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|6[567][0-9]{2}|4([14]0[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
32-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|6[567][0-9]\{2\}\|4\([14]0[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
31+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|6[2567][0-9]{2}|4([14]0[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
32+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|6[2567][0-9]\{2\}\|4\([14]0[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
3333
-->
3434

3535
| 命令 | 正则表达式 |
3636
| --- | --- |
37-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|6[567][0-9]{2}\|4([14]0[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$` |
38-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|6[567][0-9]\{2\}\\|4\([14]0[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
37+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|6[2567][0-9]{2}\|4([14]0[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$` |
38+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4\([14]0[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
3939

4040
### 匹配所有支持短信功能的号码(手机卡 + 上网卡)
4141

4242
<!--
43-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|6[567][0-9]{2}|4[579][0-9]{2})[0-9]{6}$` |
44-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|6[567][0-9]\{2\}\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
43+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|6[2567][0-9]{2}|4[579][0-9]{2})[0-9]{6}$` |
44+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|6[2567][0-9]\{2\}\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
4545
-->
4646

4747
| 命令 | 正则表达式 |
4848
| --- | --- |
49-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|6[567][0-9]{2}\|4[579][0-9]{2})[0-9]{6}$` |
50-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|6[567][0-9]\{2\}\\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
49+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|6[2567][0-9]{2}\|4[579][0-9]{2})[0-9]{6}$` |
50+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
5151

5252
### 手机卡
5353

5454
#### 匹配所有
5555

5656
<!--
57-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([35678][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|66[0-9]{2})[0-9]{6}$` |
58-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([35678][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|66[0-9]\{2\}\)[0-9]\{6\}$` |
57+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([35678][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|66[0-9]{2})[0-9]{6}$` |
58+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([35678][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|66[0-9]\{2\}\)[0-9]\{6\}$` |
5959
-->
6060

6161
| 命令 | 正则表达式 |
6262
| --- | --- |
63-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([35678][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|66[0-9]{2})[0-9]{6}$` |
64-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([35678][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|66[0-9]\{2\}\)[0-9]\{6\}$` |
63+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([35678][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|66[0-9]{2})[0-9]{6}$` |
64+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([35678][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|66[0-9]\{2\}\)[0-9]\{6\}$` |
6565

6666
#### 匹配中国移动
6767

@@ -90,14 +90,14 @@
9090
#### 匹配中国电信
9191

9292
<!--
93-
| GNU ERE | `^(+?86)?1(3(3[0-9]|49)[0-9]|53[0-9]{2}|8[019][0-9]{2}|7([37][0-9]{2}|40[0-5])|9[19][0-9]{2})[0-9]{6}$` |
94-
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\|49\)[0-9]\|53[0-9]\{2\}\|8[019][0-9]\{2\}\|7\([37][0-9]\{2\}\|40[0-5]\)\|9[19][0-9]\{2\}\)[0-9]\{6\}$` |
93+
| GNU ERE | `^(+?86)?1(3(3[0-9]|49)[0-9]|53[0-9]{2}|8[019][0-9]{2}|7([37][0-9]{2}|40[0-5])|9[139][0-9]{2})[0-9]{6}$` |
94+
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\|49\)[0-9]\|53[0-9]\{2\}\|8[019][0-9]\{2\}\|7\([37][0-9]\{2\}\|40[0-5]\)\|9[139][0-9]\{2\}\)[0-9]\{6\}$` |
9595
-->
9696

9797
| 命令 | 正则表达式 |
9898
| --- | --- |
99-
| GNU ERE | `^(+?86)?1(3(3[0-9]\|49)[0-9]\|53[0-9]{2}\|8[019][0-9]{2}\|7([37][0-9]{2}\|40[0-5])\|9[19][0-9]{2})[0-9]{6}$` |
100-
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\\|49\)[0-9]\\|53[0-9]\{2\}\\|8[019][0-9]\{2\}\\|7\([37][0-9]\{2\}\\|40[0-5]\)\\|9[19][0-9]\{2\}\)[0-9]\{6\}$` |
99+
| GNU ERE | `^(+?86)?1(3(3[0-9]\|49)[0-9]\|53[0-9]{2}\|8[019][0-9]{2}\|7([37][0-9]{2}\|40[0-5])\|9[139][0-9]{2})[0-9]{6}$` |
100+
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\\|49\)[0-9]\\|53[0-9]\{2\}\\|8[019][0-9]\{2\}\\|7\([37][0-9]\{2\}\\|40[0-5]\)\\|9[139][0-9]\{2\}\)[0-9]\{6\}$` |
101101

102102
#### 匹配北京船舶通信导航有限公司(海事卫星通信)
103103

@@ -128,14 +128,14 @@
128128
#### 匹配所有
129129

130130
<!--
131-
| GNU ERE | `^(+?86)?1(7[01]|6[57])[0-9]{8}$` |
132-
| GNU BRE | `^\(+\?86\)\?1\(7[01]\|6[57]\)[0-9]\{8\}$` |
131+
| GNU ERE | `^(+?86)?1(7[01]|6[257])[0-9]{8}$` |
132+
| GNU BRE | `^\(+\?86\)\?1\(7[01]\|6[257]\)[0-9]\{8\}$` |
133133
-->
134134

135135
| 命令 | 正则表达式 |
136136
| --- | --- |
137-
| GNU ERE | `^(+?86)?1(7[01]\|6[57])[0-9]{8}$` |
138-
| GNU BRE | `^\(+\?86\)\?1\(7[01]\\|6[57]\)[0-9]\{8\}$` |
137+
| GNU ERE | `^(+?86)?1(7[01]\|6[257])[0-9]{8}$` |
138+
| GNU BRE | `^\(+\?86\)\?1\(7[01]\\|6[257]\)[0-9]\{8\}$` |
139139

140140
#### 匹配中国移动
141141

@@ -164,14 +164,14 @@
164164
#### 匹配中国电信
165165

166166
<!--
167-
| GNU ERE | `^(+?86)?170[0-2][0-9]{7}$` |
168-
| GNU BRE | `^\(+\?86\)\?170[0-2][0-9]\{7\}$` |
167+
| GNU ERE | `^(+?86)?1(70[012]|62[0-9])[0-9]{7}$` |
168+
| GNU BRE | `^\(+\?86\)\?1\(70[012]\|62[0-9]\)[0-9]\{7\}$` |
169169
-->
170170

171171
| 命令 | 正则表达式 |
172172
| --- | --- |
173-
| GNU ERE | `^(+?86)?170[0-2][0-9]{7}$` |
174-
| GNU BRE | `^\(+\?86\)\?170[0-2][0-9]\{7\}$` |
173+
| GNU ERE | `^(+?86)?1(70[012]\|62[0-9])[0-9]{7}$` |
174+
| GNU BRE | `^\(+\?86\)\?1\(70[012]\\|62[0-9]\)[0-9]\{7\}$` |
175175

176176
### 物联网数据卡
177177

@@ -246,6 +246,9 @@
246246

247247
## 更新日志
248248

249+
#### 2019.12.24
250+
- 添加 162 / 193 / 195 号段支持。
251+
249252
#### 2019.01.12
250253
- 发布首个兼容 GNU BRE 和 GNU ERE 的版本。
251254

POSIX.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,40 +31,40 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
3131
-->
3232

3333
<!--
34-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|6[567][0-9]{2}|4([14]0[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
35-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|6[567][0-9]\{2\}\|4\([14]0[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
34+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|6[2567][0-9]{2}|4([14]0[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
35+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|6[2567][0-9]\{2\}\|4\([14]0[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
3636
-->
3737

3838
| Command | Regular Expression |
3939
| --- | --- |
40-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|6[567][0-9]{2}\|4([14]0[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$` |
41-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|6[567][0-9]\{2\}\\|4\([14]0[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
40+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|6[2567][0-9]{2}\|4([14]0[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$` |
41+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4\([14]0[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
4242

4343
### Match all numbers with SMS (Phone number + Data only number)
4444

4545
<!--
46-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|6[567][0-9]{2}|4[579][0-9]{2})[0-9]{6}$` |
47-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|6[567][0-9]\{2\}\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
46+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([01356789][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|6[2567][0-9]{2}|4[579][0-9]{2})[0-9]{6}$` |
47+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([01356789][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|6[2567][0-9]\{2\}\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
4848
-->
4949

5050
| Command | Regular Expression |
5151
| --- | --- |
52-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|6[567][0-9]{2}\|4[579][0-9]{2})[0-9]{6}$` |
53-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|6[567][0-9]\{2\}\\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
52+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([01356789][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|6[2567][0-9]{2}\|4[579][0-9]{2})[0-9]{6}$` |
53+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([01356789][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4[579][0-9]\{2\}\)[0-9]\{6\}$` |
5454

5555
### Mobile phone number
5656

5757
#### Match all
5858

5959
<!--
60-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([35678][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[1589][0-9]{2}|66[0-9]{2})[0-9]{6}$` |
61-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([35678][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[1589][0-9]\{2\}\|66[0-9]\{2\}\)[0-9]\{6\}$` |
60+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[012356789][0-9]{2}|8[0-9]{3}|7([35678][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[13589][0-9]{2}|66[0-9]{2})[0-9]{6}$` |
61+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[012356789][0-9]\{2\}\|8[0-9]\{3\}\|7\([35678][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[13589][0-9]\{2\}\|66[0-9]\{2\}\)[0-9]\{6\}$` |
6262
-->
6363

6464
| Command | Regular Expression |
6565
| --- | --- |
66-
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([35678][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[1589][0-9]{2}\|66[0-9]{2})[0-9]{6}$` |
67-
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([35678][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[1589][0-9]\{2\}\\|66[0-9]\{2\}\)[0-9]\{6\}$` |
66+
| GNU ERE | `^(+?86)?1(3[0-9]{3}\|5[012356789][0-9]{2}\|8[0-9]{3}\|7([35678][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[13589][0-9]{2}\|66[0-9]{2})[0-9]{6}$` |
67+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[012356789][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([35678][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[13589][0-9]\{2\}\\|66[0-9]\{2\}\)[0-9]\{6\}$` |
6868

6969
#### Match China Mobile
7070

@@ -93,14 +93,14 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
9393
#### Match China Telecom
9494

9595
<!--
96-
| GNU ERE | `^(+?86)?1(3(3[0-9]|49)[0-9]|53[0-9]{2}|8[019][0-9]{2}|7([37][0-9]{2}|40[0-5])|9[19][0-9]{2})[0-9]{6}$` |
97-
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\|49\)[0-9]\|53[0-9]\{2\}\|8[019][0-9]\{2\}\|7\([37][0-9]\{2\}\|40[0-5]\)\|9[19][0-9]\{2\}\)[0-9]\{6\}$` |
96+
| GNU ERE | `^(+?86)?1(3(3[0-9]|49)[0-9]|53[0-9]{2}|8[019][0-9]{2}|7([37][0-9]{2}|40[0-5])|9[139][0-9]{2})[0-9]{6}$` |
97+
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\|49\)[0-9]\|53[0-9]\{2\}\|8[019][0-9]\{2\}\|7\([37][0-9]\{2\}\|40[0-5]\)\|9[139][0-9]\{2\}\)[0-9]\{6\}$` |
9898
-->
9999

100100
| Command | Regular Expression |
101101
| --- | --- |
102-
| GNU ERE | `^(+?86)?1(3(3[0-9]\|49)[0-9]\|53[0-9]{2}\|8[019][0-9]{2}\|7([37][0-9]{2}\|40[0-5])\|9[19][0-9]{2})[0-9]{6}$` |
103-
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\\|49\)[0-9]\\|53[0-9]\{2\}\\|8[019][0-9]\{2\}\\|7\([37][0-9]\{2\}\\|40[0-5]\)\\|9[19][0-9]\{2\}\)[0-9]\{6\}$` |
102+
| GNU ERE | `^(+?86)?1(3(3[0-9]\|49)[0-9]\|53[0-9]{2}\|8[019][0-9]{2}\|7([37][0-9]{2}\|40[0-5])\|9[139][0-9]{2})[0-9]{6}$` |
103+
| GNU BRE | `^\(+\?86\)\?1\(3\(3[0-9]\\|49\)[0-9]\\|53[0-9]\{2\}\\|8[019][0-9]\{2\}\\|7\([37][0-9]\{2\}\\|40[0-5]\)\\|9[139][0-9]\{2\}\)[0-9]\{6\}$` |
104104

105105
#### Match Inmarsat (Satellite Communications)
106106

@@ -131,14 +131,14 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
131131
#### Match all
132132

133133
<!--
134-
| GNU ERE | `^(+?86)?1(7[01]|6[57])[0-9]{8}$` |
135-
| GNU BRE | `^\(+\?86\)\?1\(7[01]\|6[57]\)[0-9]\{8\}$` |
134+
| GNU ERE | `^(+?86)?1(7[01]|6[257])[0-9]{8}$` |
135+
| GNU BRE | `^\(+\?86\)\?1\(7[01]\|6[257]\)[0-9]\{8\}$` |
136136
-->
137137

138138
| Command | Regular Expression |
139139
| --- | --- |
140-
| GNU ERE | `^(+?86)?1(7[01]\|6[57])[0-9]{8}$` |
141-
| GNU BRE | `^\(+\?86\)\?1\(7[01]\\|6[57]\)[0-9]\{8\}$` |
140+
| GNU ERE | `^(+?86)?1(7[01]\|6[257])[0-9]{8}$` |
141+
| GNU BRE | `^\(+\?86\)\?1\(7[01]\\|6[257]\)[0-9]\{8\}$` |
142142

143143
#### Match China Mobile
144144

@@ -167,14 +167,14 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
167167
#### Match China Telecom
168168

169169
<!--
170-
| GNU ERE | `^(+?86)?170[0-2][0-9]{7}$` |
171-
| GNU BRE | `^\(+\?86\)\?170[0-2][0-9]\{7\}$` |
170+
| GNU ERE | `^(+?86)?1(70[012]|62[0-9])[0-9]{7}$` |
171+
| GNU BRE | `^\(+\?86\)\?1\(70[012]\|62[0-9]\)[0-9]\{7\}$` |
172172
-->
173173

174174
| Command | Regular Expression |
175175
| --- | --- |
176-
| GNU ERE | `^(+?86)?170[0-2][0-9]{7}$` |
177-
| GNU BRE | `^\(+\?86\)\?170[0-2][0-9]\{7\}$` |
176+
| GNU ERE | `^(+?86)?1(70[012]\|62[0-9])[0-9]{7}$` |
177+
| GNU BRE | `^\(+\?86\)\?1\(70[012]\\|62[0-9]\)[0-9]\{7\}$` |
178178

179179
### IoT number
180180

@@ -249,6 +249,10 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
249249

250250
## Release Notes
251251

252+
#### December 24, 2019
253+
- Add support for 162 / 193 / 195 prefix.
254+
255+
252256
#### 2019.01.12
253257
- The first version compatible with POSIX standard (GNU BRE and GNU ERE).
254258

0 commit comments

Comments
 (0)