当前位置:网站首页>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
边栏推荐
- 力扣每日一题-第32天-1232. 缀点成线
- Create your own NFT collections and publish a Web3 application to show them (Introduction)
- Introduction to easyclick database
- Unity learning fourth week
- R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses PCH parameters to customize the shape o
- Write it down once Net travel management background CPU Explosion Analysis
- 搭建一个通用监控告警平台,架构上需要有哪些设计
- Lumiprobe非荧光炔烃丨EU(5-乙炔基尿苷)
- LiveData postValue会“丢”数据
- 11、用户、组和权限(1)
猜你喜欢

Principal component calculation weight

LeetCode-21合并两个有序链表

Localization through custom services in the shuttle application

Leetcode-160 intersecting linked list

为什么独立站卖家都开始做社交媒体营销?原来客户转化率能提高这么多!

What designs are needed in the architecture to build a general monitoring and alarm platform

Leetcode203 remove linked list elements

The 13th simulation problem of the single chip microcomputer provincial competition of the Blue Bridge Cup

Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯

6款红黄黑榜摄像头评测:谁最安全?谁画质好?从此让你不再踩雷
随机推荐
Implementation of converting PCM file to WAV
js找出数字在数组中下一个相邻的元素
Lumiprobe Lumizol RNA 提取试剂解决方案
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
How to find customers for investment attraction in industrial parks
Implement a Prometheus exporter
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
3、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》在本地铸造 NFT
Lumiprobe biomolecular quantification - qudye Protein Quantification Kit
PriorityQueue的用法和底层实现原理
斯坦福、Salesforce|MaskViT:蒙面视觉预训练用于视频预测
Leetcode-141 circular linked list
Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester
app发版后的缓存问题
About enterprise middle office planning and it architecture microservice transformation
R语言epiDisplay包ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)、write.csv函数保存csv
关于企业中台规划和 IT 架构微服务转型
Leetcode-83 删除排序链表中重复的元素
Reading notes series "modern methods of C language programming" -- Chapter 2
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