当前位置:网站首页>Regular verification of mobile phone number, landline email ID card
Regular verification of mobile phone number, landline email ID card
2022-06-13 06:05:00 【Jiuwujiuwu】
let testPhone=/^(1(?:3\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\d|9\d)\d{8})?$/;// Cell phone number is regular
let testFixedPhone=/^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/;// Landline regular
let testEmail = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/; // Regular mailbox
let testIdNum =/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;// ID card regular
边栏推荐
猜你喜欢

Experience of redis installation under Linux system (an error is reported at the same time. The struct redis server does not have a member named XXXX)

What happens when the MySQL union index ABC encounters a "comparison operator"?

Self summarizing

零拷贝技术

中断处理过程

Echart柱状图:堆叠柱状图显示value

Add attributes in storyboard and Xib (fillet, foreground...) Ibinspectable and ibdesignable

Complete USB debugging assistant

Missing tag identification in cots RFID systems: bringing the gap between theory and Practice
![[compilation and assembly link] coff file and structure description](/img/73/fca3752327c31877ea8f56f96c009e.jpg)
[compilation and assembly link] coff file and structure description
随机推荐
Use of Nacos configuration center
USB debugging assistant 20181018 (v1.3)
Echart矩形树图:简单实现矩形树图
[automated test] cypress manual
php 分布式事务 原理详解
Leetcode Timo attack - simple
The difference between the increment and decrement operators before and after variables i+, +i, I –, – I
Class conflicts caused by tongweb Enterprise Edition and embedded Edition
Leetcode planting flowers - simple
You still can't remotely debug idea? Come and have a look at my article. It's easy to use
1016 part a+b (15 points)
Rk3399 hid gadget configuration
Minimum spanning tree (prim+kruskal) learning notes (template +oj topic)
Leetcode- string addition - simple
Multiple reception occurs in the uniapp message delivery
Exception after repeated application redeployment on tongweb: application instance has been stopped already or outofmemoryerror:metaspace
Source code analysis of ArrayList
Ffmpeg download suffix is Video files for m3u8
Service fusing and degradation of Note Series
2021-11-04 implementation of binary search