当前位置:网站首页>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
边栏推荐
- 372. chessboard coverage
- Concurrent shared model management
- 基本数据类型
- Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
- Laravel message queue
- Mousse shares listed on Shenzhen Stock Exchange: becoming popular by mattress and "foreign old man", with a market value of 22.4 billion yuan
- jar中没有主清单属性
- 第六章 网络学习相关技巧5(超参数验证)
- golang convert json string to map
- Ganglia 的安装与部署
猜你喜欢

Pousser l'information au format markdown vers le robot nail

安装IBM CPLEX学术版 academic edition | conda 安装 CPLEX

Canvas to add watermark to pictures

Chapter VI skills related to e-learning 5 (super parameter verification)
![[JS] - [tree] - learning notes](/img/62/de4fa2a7c5e52c461b8be4a884a395.png)
[JS] - [tree] - learning notes

Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk

【js】-【数组、栈、队列、链表基础】-笔记

Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis

Attention, postgraduate candidates! They are the easiest scams to get caught during the preparation period?!

从客户端到服务器
随机推荐
Dig deep into MySQL - resolve the non clustered index of MyISAM storage engine
Listen to the markdown file and hot update next JS page
Some updates about a hand slider (6-18, JS reverse)
Tech talk activity review kubernetes skills of cloud native Devops
Laravel add helper file
378. Knight placement
推送Markdown格式信息到釘釘機器人
Building Survey [3]
Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis
从客户端到服务器
Installation and deployment of ganglia
15 lines of code using mathematical formulas in wangeditor V5
laravel用户授权
监听 Markdown 文件并热更新 Next.js 页面
Epics record reference 4 -- fields for all input records and fields for all output records
A big factory interview must ask: how to solve the problem of TCP reliable transmission? 8 pictures for you to learn in detail
Actipro WPF Controls 2022.1.2
EMI的主要原因-工模电流
[JS] - [array, Stack, queue, Link List basis] - Notes
Gocolly manual