当前位置:网站首页>Regular expression for mobile number verification
Regular expression for mobile number verification
2022-07-28 08:18:00 【zhou_ zhao_ xu】
Mobile phone number verification is regular
Regular used for verification
String regex = "^((13[0-9])|(14[5789])|(15([0-3]|[5-9]))|(16[2567])|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\\d{8}$";
Use
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User{
private String name;
@Pattern(regexp = "^((13[0-9])|(14[5789])|(15([0-3]|[5-9]))|(16[2567])|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\\d{8}$")
private String mobilePhone;
}
边栏推荐
- 滴滴SQL面试题之打车业务问题如何分析
- Enum class
- JS card cascading style image switching JS special effect
- DNA cuinseqds near infrared CuInSe quantum dots wrapped deoxyribonucleic acid DNA
- What if the computer folder cannot be renamed?
- Elaborate on common mode interference and differential mode interference
- Some experience of gd32 using Hal Library of ST and Gd official library
- Matplotlib绘图笔记基础直线、折线、曲线
- js信息提示框定时关闭
- Mysql中有哪些不同的表格?
猜你喜欢

DNA modified noble metal nanoparticles | DNA modified copper nanoparticles cunps-dna | research points

OSPF comprehensive experiment (7.12)

And is two numbers of S - two questions per day

谈谈DOM0,DOM1,DOM2,DOM3

Is the salary of test / development programmers unbalanced? Busy life, all kinds of job hopping

非关系型数据库之Redis【redis集群详细搭建】

Change the dataDir path after mysql8.0.16 installation

Merge two sorted linked lists - two questions per day

03 | project deployment: how to quickly deploy a website developed based on the laravel framework

XMPP Service Research (II) prosody create account
随机推荐
Opencv's practical learning of credit card recognition (4)
[book club issue 13] Chapter 2 notes on the packaging format and coding format of video files
Five screens, VR, projection, "Wei Xiaoli" rolled up on the intelligent cockpit
XSS knowledge points and 20 character short domain name bypass
Chapter 01 introduction of [notes of Huashu]
“蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)
Using identity framework to realize JWT identity authentication and authorization in.Net 6.0
Melt cloud x chat, create a "stress free social" habitat with sound
Rk3568 development board installation system startup
【花书笔记】 之 Chapter01 引言
C language explanation series - array explanation, one-dimensional array, two-dimensional array
Digital management insight into retail and e-commerce operations -- Introduction to digital management
Awk from introduction to earth (16) discussion on the types of awk variables -- about the two types of numbers and strings
【13】加法器:如何像搭乐高一样搭电路(上)?
Swm32 series tutorial 5-adc application
js信息提示框定时关闭
深度学习基础宝典---激活函数、Batch Size、归一化
Elaborate on common mode interference and differential mode interference
QT uses semaphores to control threads (qsemaphore)
In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]