当前位置:网站首页>Common regular expressions
Common regular expressions
2022-06-24 23:22:00 【Programmer Jiuan】
Common regular expressions
IDCARD regexp '^(\\d{6})(19|20)(\\d{2})(1[0-2]|0[1-9])(0[1-9]|[1-2][0-9]|3[0-1])(\\d{3})(\\d|X|x)?$' 18 Id card
MOBILE REGEXP '^1([3578][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$' cell-phone number
yyyy/MM/dd Format time verification :
'(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\/(((0[13578]|1[02])\/(0[1-9]|[12][0-9]|3[01]))| ((0[469]|11)\/(0[1-9]|[12][0-9]|30))|(02\/(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])| ((0[48]|[2468][048]|[3579][26])00))\/02\/29)$'
Time yyyy/mm/dd hh:mm:ss
'(((01[0-9]{2}|0[2-9][0-9]{2}|[1-9][0-9]{3})\/(0?[13578]|1[02])\/(0?[1-9]|[12]\\d|3[01]))|((01[0-9]{2}|0[2-9][0-9]{2}|[1-9][0-9]{3})\/(0?[13456789]|1[012])\/(0?[1-9]|[12]\\d|30))|((01[0-9]{2}|0[2-9][0-9]{2}|[1-9][0-9]{3})\/0?2\/(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((04|08|12|16|[2468][048]|[3579][26])00))-0?2-29)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d'
--- yyyy--mm--dd hh:mm:ss
(((01[0-9]{
2}|0[2-9][0-9]{
2}|[1-9][0-9]{
3})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|((01[0-9]{
2}|0[2-9][0-9]{
2}|[1-9][0-9]{
3})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|((01[0-9]{
2}|0[2-9][0-9]{
2}|[1-9][0-9]{
3})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((04|08|12|16|[2468][048]|[3579][26])00))-0?2-29)) (20|21|22|23|[0-1]?\\d):[0-5]?\\d:[0-5]?\\d
边栏推荐
猜你喜欢
![[introduction to UVM== > episode_8] ~ sequence and sequencer, sequence hierarchy](/img/d0/7d78b00e4f6ad1e8efb73a5d472b09.png)
[introduction to UVM== > episode_8] ~ sequence and sequencer, sequence hierarchy

第六章 网络学习相关技巧5(超参数验证)

伪原创智能改写api百度-收录良好

The large-scale market of graduate dormitory! Here comes the enviable graduate dormitory!

【js】-【树】-学习笔记

Tech talk activity review kubernetes skills of cloud native Devops

Canvas to add watermark to pictures

Mousse shares listed on Shenzhen Stock Exchange: becoming popular by mattress and "foreign old man", with a market value of 22.4 billion yuan

Installation and deployment of ganglia

【js】-【数组、栈、队列、链表基础】-笔记
随机推荐
[ROS play with turtle turtle]
File contains vulnerability issues
InnoDB, the storage engine of MySQL Architecture Principle_ Redo log and binlog
Push markdown format information to the nailing robot
Docker-mysql8-master-slave
文件包含漏洞问题
Detailed explanation of online group chat and dating platform project (servlet implementation)
laravel 创建 service层
Chapter VI skills related to e-learning 5 (super parameter verification)
257. detention of offenders
[JS] - [linked list - application] - learning notes
Docker installation redis- simple without pit
Laravel authentication module auth
Selection (027) - what is the output of the following code?
監聽 Markdown 文件並熱更新 Next.js 頁面
【js】-【链表-应用】-学习笔记
golang map clear
慕思股份深交所上市:靠床垫和“洋老头”走红 市值224亿
斐波那契
并发之共享模型管程