当前位置:网站首页>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;
}
边栏推荐
- JUC原子类: CAS, Unsafe、CAS缺点、ABA问题如何解决详解
- Swm32 series tutorial 5-adc application
- Method of hiding scroll bar in wechat applet
- Merge two sorted linked lists - two questions per day
- [dry goods] 32 EMC standard circuits are shared!
- 2022年湖南工学院ACM集训第五次周测AD题题解
- What are the different tables in MySQL?
- 解析树形结构 js
- There are two Kafka topics that need to write data intact to MySQL King through Flink. Scheme 1: write two f's
- Redis of non relational database [jedis client +jedis connection cluster]
猜你喜欢

Find out whether the number exists from the matrix

Clion debugging redis6 source code

node(一)

Draw.io image saving path settings

Meituan Er Mian: why does redis have sentinels?

“蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)

Delete the nodes in the linked list - daily question

XSS知识点和20字符短域名绕过
![[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)](/img/86/8e97b4456e2ba9a8535debb099fee0.png)
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VIII)

Elaborate on common mode interference and differential mode interference
随机推荐
GD32使用ST的HAL库和GD官方库的一些体会
Using identity framework to realize JWT identity authentication and authorization in.Net 6.0
Merge two sorted linked lists - two questions per day
XMPP Service Research (II) prosody create account
Method of hiding scroll bar in wechat applet
03 | project deployment: how to quickly deploy a website developed based on the laravel framework
演讲笔记 适合所有人的实用程序生成 PCG
Analysis of collector principle
What if the task manager is not fully displayed?
Mechanical revolution Jiaolong P wired network card driver can't play
Yaml parameter configuration based on singleton mode
Swm32 series tutorial 5-adc application
[Err] 1055 - Expression#2 of select list is not in GROUP BY clause and contains nonaggregated column
@The role of documented
DNA deoxyribonucleic acid modified platinum nanoparticles ptnps DNA | scientific research reagent
JUC原子类: CAS, Unsafe、CAS缺点、ABA问题如何解决详解
mysql,我们如何得到受查询影响的行数?
记录一次mycat连接Communications link failure问题解决
Mysql, how many columns can be used to create an index?
Information system project manager must recite the core examination site (41) risk management plan