You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[01235-9][0-9]{2}|8[0-9]{3}|7([0-35-9][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[0-35-9][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[01235-9][0-9]\{2\}\|8[0-9]\{3\}\|7\([0-35-9][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[0-35-9][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 ERE | `^(+?86)?1(3[0-9]{3}|5[01235-9][0-9]{2}|8[0-9]{3}|7([0-35-9][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[0-35-9][0-9]{2}|6[2567][0-9]{2}|4((10|4[01])[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
33
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[01235-9][0-9]\{2\}\|8[0-9]\{3\}\|7\([0-35-9][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[0-35-9][0-9]\{2\}\|6[2567][0-9]\{2\}\|4\((10|4[01])[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$`
33
34
-->
34
35
35
36
| 命令 | 正则表达式 |
36
37
| --- | --- |
37
-
| GNU ERE |`^(+?86)?1(3[0-9]{3}\|5[01235-9][0-9]{2}\|8[0-9]{3}\|7([0-35-9][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[0-35-9][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[01235-9][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([0-35-9][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[0-35-9][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 ERE |`^(+?86)?1(3[0-9]{3}\|5[01235-9][0-9]{2}\|8[0-9]{3}\|7([0-35-9][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[0-35-9][0-9]{2}\|6[2567][0-9]{2}\|4((10\|4[01])[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$`|
39
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[01235-9][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([0-35-9][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[0-35-9][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4\(\(10\\|4[01]\)[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
39
40
40
41
### 匹配所有支持短信功能的号码(手机卡 + 上网卡)
41
42
@@ -84,8 +85,8 @@
84
85
85
86
| 命令 | 正则表达式 |
86
87
| --- | --- |
87
-
| GNU ERE | `^(+?86)?1(3[0-2]\|[578][56]\|66|96)[0-9]{8}$` |
88
-
| GNU BRE | `^\(+\?86\)\?1\(3[0-2]\\|[578][56]\\|66|96\)[0-9]\{8\}$` |
88
+
| GNU ERE |`^(+?86)?1(3[0-2]\|[578][56]\|66\|96)[0-9]{8}$`|
89
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-2]\\|[578][56]\\|66\\|96\)[0-9]\{8\}$` |
89
90
90
91
#### 匹配中国电信
91
92
@@ -190,26 +191,26 @@
190
191
#### 匹配所有
191
192
192
193
<!--
193
-
| GNU ERE | `^(+?86)?14([14]0|[68][0-9])[0-9]{9}$` |
194
-
| GNU BRE | `^\(+\?86\)\?14\([14]0\|[68][0-9]\)[0-9]\{9\}$` |
194
+
| GNU ERE | `^(+?86)?14([14]0|41|[68][0-9])[0-9]{9}$` |
195
+
| GNU BRE | `^\(+\?86\)\?14\([14]0\|41\|[68][0-9]\)[0-9]\{9\}$` |
195
196
-->
196
197
197
198
| 命令 | 正则表达式 |
198
199
| --- | --- |
199
-
| GNU ERE |`^(+?86)?14([14]0\|[68][0-9])[0-9]{9}$`|
200
-
| GNU BRE | `^\(+\?86\)\?14\([14]0\\|[68][0-9]\)[0-9]\{9\}$` |
200
+
| GNU ERE |`^(+?86)?14([14]0\|41\|[68][0-9])[0-9]{9}$`|
201
+
| GNU BRE | `^\(+\?86\)\?14\([14]0\\|41\\|[68][0-9]\)[0-9]\{9\}$` |
201
202
202
203
#### 匹配中国移动
203
204
204
205
<!--
205
-
| GNU ERE | `^(+?86)?14(40|8[0-9])[0-9]{9}$` |
206
-
| GNU BRE | `^\(+\?86\)\?14\(40\|8[0-9]\)[0-9]\{9\}$` |
206
+
| GNU ERE | `^(+?86)?14(4[01]|8[0-9])[0-9]{9}$` |
207
+
| GNU BRE | `^\(+\?86\)\?14\(4[01]\|8[0-9]\)[0-9]\{9\}$` |
207
208
-->
208
209
209
210
| 命令 | 正则表达式 |
210
211
| --- | --- |
211
-
| GNU ERE |`^(+?86)?14(40\|8[0-9])[0-9]{9}$`|
212
-
| GNU BRE | `^\(+\?86\)\?14\(40\\|8[0-9]\)[0-9]\{9\}$` |
212
+
| GNU ERE |`^(+?86)?14(4[01]\|8[0-9])[0-9]{9}$`|
213
+
| GNU BRE | `^\(+\?86\)\?14\(4[01]\\|8[0-9]\)[0-9]\{9\}$` |
Copy file name to clipboardexpand all lines: POSIX.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,14 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
31
31
-->
32
32
33
33
<!--
34
-
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[01235-9][0-9]{2}|8[0-9]{3}|7([0-35-9][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[0-35-9][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[01235-9][0-9]\{2\}\|8[0-9]\{3\}\|7\([0-35-9][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[0-35-9][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\}$` |
34
+
| GNU ERE | `^(+?86)?1(3[0-9]{3}|5[01235-9][0-9]{2}|8[0-9]{3}|7([0-35-9][0-9]{2}|4(0[0-9]|1[0-2]|9[0-9]))|9[0-35-9][0-9]{2}|6[2567][0-9]{2}|4((10|4[01])[0-9]{3}|[68][0-9]{4}|[579][0-9]{2}))[0-9]{6}$` |
35
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\|5[01235-9][0-9]\{2\}\|8[0-9]\{3\}\|7\([0-35-9][0-9]\{2\}\|4\(0[0-9]\|1[0-2]\|9[0-9]\)\)\|9[0-35-9][0-9]\{2\}\|6[2567][0-9]\{2\}\|4\((10|4[01])[0-9]\{3\}\|[68][0-9]\{4\}\|[579][0-9]\{2\}\)\)[0-9]\{6\}$`
36
36
-->
37
37
38
38
| Command | Regular Expression |
39
39
| --- | --- |
40
-
| GNU ERE |`^(+?86)?1(3[0-9]{3}\|5[01235-9][0-9]{2}\|8[0-9]{3}\|7([0-35-9][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[0-35-9][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[01235-9][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([0-35-9][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[0-35-9][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\}$` |
40
+
| GNU ERE |`^(+?86)?1(3[0-9]{3}\|5[01235-9][0-9]{2}\|8[0-9]{3}\|7([0-35-9][0-9]{2}\|4(0[0-9]\|1[0-2]\|9[0-9]))\|9[0-35-9][0-9]{2}\|6[2567][0-9]{2}\|4((10\|4[01])[0-9]{3}\|[68][0-9]{4}\|[579][0-9]{2}))[0-9]{6}$`|
41
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-9]\{3\}\\|5[01235-9][0-9]\{2\}\\|8[0-9]\{3\}\\|7\([0-35-9][0-9]\{2\}\\|4\(0[0-9]\\|1[0-2]\\|9[0-9]\)\)\\|9[0-35-9][0-9]\{2\}\\|6[2567][0-9]\{2\}\\|4\(\(10\\|4[01]\)[0-9]\{3\}\\|[68][0-9]\{4\}\\|[579][0-9]\{2\}\)\)[0-9]\{6\}$` |
42
42
43
43
### Match all numbers with SMS (Phone number + Data only number)
44
44
@@ -87,8 +87,8 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
87
87
88
88
| Command | Regular Expression |
89
89
| --- | --- |
90
-
| GNU ERE | `^(+?86)?1(3[0-2]\|[578][56]\|66|96)[0-9]{8}$` |
91
-
| GNU BRE | `^\(+\?86\)\?1\(3[0-2]\\|[578][56]\\|66|96\)[0-9]\{8\}$` |
90
+
| GNU ERE |`^(+?86)?1(3[0-2]\|[578][56]\|66\|96)[0-9]{8}$`|
91
+
| GNU BRE | `^\(+\?86\)\?1\(3[0-2]\\|[578][56]\\|66\\|96\)[0-9]\{8\}$` |
92
92
93
93
#### Match China Telecom
94
94
@@ -109,7 +109,7 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
109
109
| GNU BRE | `^\(+\?86\)\?192[0-9]\{8\}$` |
110
110
-->
111
111
112
-
|命令|正则表达式|
112
+
|Command|Regular Expression|
113
113
| --- | --- |
114
114
| GNU ERE |`^(+?86)?192[0-9]{8}$`|
115
115
| GNU BRE |`^\(+\?86\)\?192[0-9]\{8\}$`|
@@ -193,26 +193,26 @@ See https://help.github.com/articles/organizing-information-with-tables/#formatt
193
193
#### Match all
194
194
195
195
<!--
196
-
| GNU ERE | `^(+?86)?14([14]0|[68][0-9])[0-9]{9}$` |
197
-
| GNU BRE | `^\(+\?86\)\?14\([14]0\|[68][0-9]\)[0-9]\{9\}$` |
196
+
| GNU ERE | `^(+?86)?14([14]0|41|[68][0-9])[0-9]{9}$` |
197
+
| GNU BRE | `^\(+\?86\)\?14\([14]0\|41\|[68][0-9]\)[0-9]\{9\}$` |
198
198
-->
199
199
200
200
| Command | Regular Expression |
201
201
| --- | --- |
202
-
| GNU ERE |`^(+?86)?14([14]0\|[68][0-9])[0-9]{9}$`|
203
-
| GNU BRE | `^\(+\?86\)\?14\([14]0\\|[68][0-9]\)[0-9]\{9\}$` |
202
+
| GNU ERE |`^(+?86)?14([14]0\|41\|[68][0-9])[0-9]{9}$`|
203
+
| GNU BRE | `^\(+\?86\)\?14\([14]0\\|41\\|[68][0-9]\)[0-9]\{9\}$` |
204
204
205
205
#### Match China Mobile
206
206
207
207
<!--
208
-
| GNU ERE | `^(+?86)?14(40|8[0-9])[0-9]{9}$` |
209
-
| GNU BRE | `^\(+\?86\)\?14\(40\|8[0-9]\)[0-9]\{9\}$` |
208
+
| GNU ERE | `^(+?86)?14(4[01]|8[0-9])[0-9]{9}$` |
209
+
| GNU BRE | `^\(+\?86\)\?14\(4[01]\|8[0-9]\)[0-9]\{9\}$` |
210
210
-->
211
211
212
212
| Command | Regular Expression |
213
213
| --- | --- |
214
-
| GNU ERE |`^(+?86)?14(40\|8[0-9])[0-9]{9}$`|
215
-
| GNU BRE | `^\(+\?86\)\?14\(40\\|8[0-9]\)[0-9]\{9\}$` |
214
+
| GNU ERE |`^(+?86)?14(4[01]\|8[0-9])[0-9]{9}$`|
215
+
| GNU BRE | `^\(+\?86\)\?14\(4[01]\\|8[0-9]\)[0-9]\{9\}$` |
Copy file name to clipboardexpand all lines: README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The mobile number portability(MNP) service in mainland China has been officially
13
13
###### If you need POSIX standard regular expressions, [Click here](/POSIX.md).
14
14
15
15
### Match all numbers (Phone number + IoT number + Data only number)
16
-
[`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4(?:[14]0\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$`][Match all numbers (Phone number + IoT number + Data only number)]
16
+
[`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4(?:(?:10|4[01])\d{3}|[68]\d{4}|[579]\d{2}))\d{6}$`][Match all numbers (Phone number + IoT number + Data only number)]
17
17
18
18
### Match all numbers with SMS (Phone number + Data only number)
19
19
[`^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4[579]\d{2})\d{6}$`][Match all numbers with SMS (Phone number + Data only number)]
@@ -58,10 +58,10 @@ The mobile number portability(MNP) service in mainland China has been officially
0 commit comments