当前位置:网站首页>2020, the regular expression for mobile phone verification of the latest mobile phone number is continuously updated
2020, the regular expression for mobile phone verification of the latest mobile phone number is continuously updated
2022-07-01 18:49:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Recently, I was writing an online project with someone else , Today, there is a bug, Partially normal mobile phone No. verification format is incorrect , After checking the code, I found that there was a big error in the regular expression , Pictured :
The problem is : 1. There is a comma
2. Not comprehensive enough , Some normal mobile phone numbers fail to pass the verification
So I decided to write it myself , Baidu mobile phone number format , The following should be more comprehensive , So write the regular expression for verification according to the following , If any partner finds that there are still omissions in the figure below, please point out in the comments , I will update it as soon as I see it
Finally, write the regular expression :( Netizens have suggested that the following regular expressions are missing ,130,181,180) Cannot pass
Pattern p = Pattern.compile("^1(3([1-35-9]\\d|4[1-8])|4[14-9]\\d|5([0-25689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8[2-9]\\d|9[89]\\d)\\d{7}$");
Matcher m = p.matcher(mobile);2020-07-15 Update the modified code :
Pattern p = Pattern.compile("^1(3([0-35-9]\\d|4[1-8])|4[14-9]\\d|5([0125689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8\\d{2}|9[89]\\d)\\d{7}$");
Matcher m = p.matcher(mobile);2020-09-24 to update , newly added 191,193,195 cell-phone number
Netizens suggest that there is 191,195 cell-phone number , Combined with the following news
Pattern p = Pattern.compile("^1(3([0-35-9]\\d|4[1-8])|4[14-9]\\d|5([0125689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8\\d{2}|9[13589]\\d)\\d{7}$");
Matcher m = p.matcher(mobile);2020-11-07 to update , Missing after reminder 153 The cell phone number of
Pattern p = Pattern.compile("^1(3([0-35-9]\\d|4[1-8])|4[14-9]\\d|5([0-35689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8\\d{2}|9[13589]\\d)\\d{7}$");
Matcher m = p.matcher(mobile);2021-01-12 to update , Missing after reminder 1349 The cell phone number of
Pattern p = Pattern.compile("^1(3\\d{2}|4[14-9]\\d|5([0-35689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8\\d{2}|9[13589]\\d)\\d{7}$");
Matcher m = p.matcher(mobile);Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/130799.html Link to the original text :https://javaforall.cn
边栏推荐
- 信度系数低怎么办?信度系数具体怎么算?
- Lumiprobe Lumizol RNA 提取试剂解决方案
- How to manage 1000 anchors by one person?
- R language ggplot2 visualization: gganimate package transition_ Time function to create dynamic scatter animation (GIF), shadow_ The wake function configures the gradient falloff tailing effect of the
- Mise en place d'une plate - forme générale de surveillance et d'alarme, quelles sont les conceptions nécessaires dans l'architecture?
- 解决方案:可以ping别人,但是别人不能ping我
- 数据库基础:select基本查询语句
- Leetcode-141 circular linked list
- Halcon image calibration enables subsequent image processing to become the same as the template image
- How does factor analysis calculate weights?
猜你喜欢

Lumiprobe lumizol RNA extraction reagent solution

实例讲解将Graph Explorer搬上JupyterLab

Solution: you can ping others, but others can't ping me

Unity learning fourth week

解决方案:可以ping别人,但是别人不能ping我

OpenAI|视频预训练 (VPT):基于观看未标记的在线视频的行动学习

1. "Create your own NFT collections and publish a Web3 application to show them." what is NFT

Leetcode-160相交链表

Mise en place d'une plate - forme générale de surveillance et d'alarme, quelles sont les conceptions nécessaires dans l'architecture?

Lumiprobe biomolecular quantification - qudye Protein Quantification Kit
随机推荐
Implementation of converting PCM file to WAV
Mysql database of easyclick
How to change guns for 2D characters
Three. JS learning - basic operation of camera (learn from)
Excel之VBA简单宏编程
Privacy sandbox is finally coming
1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT
[source code analysis] model parallel distributed training Megatron (5) -- pipestream flush
研究了11种实时聊天软件,我发现都具备这些功能…
docker 部署mysql8.0
宏观视角看抖音全生态
Three.js学习-相机Camera的基本操作(了解向)
Evaluation of 6 red, yellow and black list cameras: who is the safest? Who has good picture quality? From now on, let you no longer step on thunder
A database editing gadget that can edit SQLite database. SQLite database replaces fields. SQL replaces all values of a field in the database
Solution: you can ping others, but others can't ping me
毕业总结
Memo - about C # generating barcode
1. "Create your own NFT collections and publish a Web3 application to show them." what is NFT
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
Leetcode-141 circular linked list