当前位置:网站首页>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}$/
边栏推荐
- Win11策略服务被禁用怎么办?Win11策略服务被禁用的解决方法
- 软件工程专业大二,之前的学习情况不太好该怎么规划后续发展路线
- Mba-day19 if P then q contradictory relation P and not Q
- Canonical engineers are trying to solve the performance problem of Firefox snap
- 雲服務器的安全設置常識
- Sophomore majoring in software engineering, the previous learning situation is not very good. How to plan the follow-up development route
- swift可选值总结
- Game Maker 基金会呈献:归属之谷
- How to install and use computer SSD hard disk
- 物理验证LVS流程和技术点滴(上)
猜你喜欢

3-2主机发现-三层发现

3-3主机发现-四层发现

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

mysql远程连接

福昕软件受邀亮相2022先进制造业数智发展论坛

罗清启:高端家电已成红海?卡萨帝率先破局

Physical verification LVS process and Technology (Part I)

The concept and properties of mba-day26 number

Where is the win11 installation permission set? Win11 installation permission setting method

npm ERR! fatal: early EOF npm ERR! fatal: index-pack failed
随机推荐
使用 OpenCV 的基于标记的增强现实
洞见科技作为「唯一」隐私计算数商,「首批」入驻长三角数据要素流通服务平台
Point, line, surface and body of enterprise digital transformation!
[network orientation training] - Enterprise Park Network Design - [had done]
打新债线上开户安全吗
NLP 类问题建模方案探索实践
剑指 Offer 59 - II. 队列的最大值
Arm comprehensive computing solution redefines visual experience and powerfully enables mobile games
社区访谈丨一个IT新人眼中的JumpServer开源堡垒机
Kdd 2022 | prise en compte de l'alignement et de l'uniformité des représentations dans le Filtrage collaboratif
static静态成员变量使用@Value注入方式
4-2端口Banner信息获取
MBA-day26 数的概念与性质
Creators foundation highlights in June
Sophomore majoring in software engineering, the previous learning situation is not very good. How to plan the follow-up development route
测试方法学习
JVM (4) Bytecode Technology + Runtime Optimization
How is the combination of convolution and transformer optimal?
Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!
Have you mastered all the testing methods of technology to ensure quality and software testing?