当前位置:网站首页>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}$/
边栏推荐
- Test method learning
- Canonical engineers are trying to solve the performance problem of Firefox snap
- [USB flash disk test] in order to transfer the data at the bottom of the pressure box, I bought a 2T USB flash disk, and the test result is only 47g~
- JVM (4) Bytecode Technology + Runtime Optimization
- powershell命令仅输出目录列表
- WPS和Excele
- [software testing] 01 -- software life cycle and software development model
- Win11策略服务被禁用怎么办?Win11策略服务被禁用的解决方法
- Lingyun going to sea | Wenhua online &huawei cloud: creating a new solution for smart teaching in Africa
- KDD 2022 | characterization alignment and uniformity are considered in collaborative filtering
猜你喜欢

【精品】pinia详解

Why is informatization ≠ digitalization? Finally someone made it clear

What if the win11 policy service is disabled? Solution to disabling win11 policy service

Exploration and practice of NLP problem modeling scheme

QC protocol + Huawei fcp+ Samsung AFC fast charging 5v9v chip fs2601 application

Win11系统小组件打不开?Win11系统小组件无法打开解决方法

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

shell bash脚本注意:单行末尾转义符 \ 后千万不能有其他无关字符(多行命令)

Understanding of software test logic coverage

3-3主机发现-四层发现
随机推荐
JVM(2) 垃圾回收
ASP.Net Core创建Razor页面上传多个文件(缓冲方式)(续)
Arm 全面计算解决方案重新定义视觉体验强力赋能移动游戏
3-3主机发现-四层发现
powershell命令仅输出目录列表
php实现 提取不重复的整数(编程题目能够最快的熟悉函数)
Installation and configuration of MariaDB
Go: how to write a correct UDP server
PHP Laravel 使用 aws 负载均衡器的 ip 错误问题
7.取消与关闭
startService() 过程
Have you mastered all the testing methods of technology to ensure quality and software testing?
mysql远程连接
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
Zotero journal Automatic Matching Update Influencing Factors
数据库是什么?数据库详细笔记!带你走进数据库~你想知道的这里都有!
AI scene Storage Optimization: yunzhisheng supercomputing platform storage practice based on juicefs
JVM(3) 类加载
Win11系统小组件打不开?Win11系统小组件无法打开解决方法
docker compose 部署Flask项目并构建redis服务