当前位置:网站首页>Regular expression series of mobile phone numbers
Regular expression series of mobile phone numbers
2022-06-29 19:42:00 【Old__ L】
1、 The mobile phone number rules are shown in the figure below :

The picture above comes from Global mobile number rules
2、 Regular one
The rules
1、 With 1 start
2、 The second digit is 3,4,5,6,7,8,9 In a
3、 The third to eleventh digits are 0 To 9 Any number of
/^1[3-9]\d{9}$/
3、 Rule 2
The rules
1、 With 1 start
2、 The rules for the middle three digits are as follows
3、 If the second is 3, See if the third place is 4, If it is 4, Then the fourth digit is 0 To 8 Number between , Otherwise, the third place is 0 To 3 and 5 To 9 Number between , The fourth is 0-9 Number between ;
4、 If the second is 4, Then the third place is 5、7、9 Numbers , The fourth is 0-9 Number between ;
5、 If the second is 5, Then the third place is 0 To 3 and 5 To 9 Number between , The fourth is 0-9 Number between ;
6、 If the second is 6, Then the third place is 6, The fourth is 0-9 Number between ;
7、 If the second is 7, Then the third place is 3,5,6,7, 8 The number of , The fourth is 0-9 Number between ;
8、 If the second is 8, Then the third place is 0-9 Number between , The fourth is 0-9 Number between ;
9、 If the second is 9, Then the third place is 1,3,8,9 The number of , The fourth is 0-9 Number between ;
10、 The last seven are 0 To 9 Number between ;
/^1((34[0-8])|(8\d{2})|(([35][0-35-9]|4[579]|66|7[35678]|9[1389])\d{1}))\d{7}$/
边栏推荐
- Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!
- Kdd 2022 | prise en compte de l'alignement et de l'uniformité des représentations dans le Filtrage collaboratif
- 畫虎國手孟祥順數字藏品限量發售,隨贈虎年茅臺
- npm ERR! fatal: early EOF npm ERR! fatal: index-pack failed
- Inception 新结构 | 究竟卷积与Transformer如何结合才是最优的?
- 并查集(Union-Find)
- 数据安全解决方案的大时代
- 细说GaussDB(DWS)复杂多样的资源负载管理手段
- IP error problem of PHP laravel using AWS load balancer
- swift可选值总结
猜你喜欢

KDD 2022 | 協同過濾中考慮錶征對齊和均勻性

After CDN is added to the website, the Font Icon reports an error access control allow origin

Understanding of software test logic coverage
MSYQL, redis, mongodb visual monitoring tool grafana

JVM (2) garbage collection

3 - 3 découverte de l'hôte - découverte à quatre niveaux
![[network orientation training] - Enterprise Park Network Design - [had done]](/img/12/17f95378fcc6d0fef15feb99cc4f49.png)
[network orientation training] - Enterprise Park Network Design - [had done]

Inception 新结构 | 究竟卷积与Transformer如何结合才是最优的?

细说GaussDB(DWS)复杂多样的资源负载管理手段

3-3 host discovery - layer 4 discovery
随机推荐
Connaissance générale des paramètres de sécurité du serveur Cloud
Zotero journal automatic matching update influence factor
mysql远程连接
正则表达式系列之手机号码正则
罗清启:高端家电已成红海?卡萨帝率先破局
以其他组件为代价的性能提升不是好提升
Canonical engineers are trying to solve the performance problem of Firefox snap
Win11安装权限在哪里设置?Win11安装权限设置的方法
JVM (4) Bytecode Technology + Runtime Optimization
3-3 host discovery - layer 4 discovery
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
Game Maker 基金会呈献:归属之谷
docker compose 部署Flask项目并构建redis服务
nacos 问题
做白银k线图有多重要?
细说GaussDB(DWS)复杂多样的资源负载管理手段
剑指 Offer 41. 数据流中的中位数
Lingyun going to sea | Wenhua online &huawei cloud: creating a new solution for smart teaching in Africa
[network orientation training] - Enterprise Park Network Design - [had done]
KDD 2022 | characterization alignment and uniformity are considered in collaborative filtering