当前位置:网站首页>Common regular expressions
Common regular expressions
2022-06-09 20:09: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
边栏推荐
- 安路科技发布SF1系列FPSoC新品:高集成低功耗,助力实现多种应用场景
- 杰理之 图传修改app_config.h的VIDEO_REC buffer模式和输出帧率【篇】
- Unity UI scrollbar component
- 高校社团管理系统
- 2022山东健博会,食疗养生与滋补健康展,健康管理与精准医学展
- TiDB单机、集群环境安装,单机急速体验
- Resolving the disorder of JSON parsing by fastjson
- Jerry's modification to improve the output frame rate of camera source video [chapter]
- 查询sql
- Leetcode 1984. Minimum difference in student scores (yes, resolved)
猜你喜欢

此虚拟机的处理器所支持的功能不同于保存虚拟机状态的虚拟机的处理器所支持的功能

2022 gdcpc Guangdong undergraduate program design competition

Unity-UI-Slider组件

SSM驾校管理系统

不只卖电脑的联想,还有什么“新看点”?

95 ans plus tard, le programmeur de Big Factory a été condamné à neuf mois de prison pour avoir supprimé la bibliothèque.

Not only Lenovo, which sells computers, but also what's new?

【tgowt】cmake转ninja构建

杰理之蓝牙配网【篇】

leetcode-栈与队列
随机推荐
查询sql
paramiko和线程池Demo(快速批量操作服务器)
Babbitt | metauniverse daily must read: Citibank reported that the metauniverse economy represents $13 trillion in income opportunities, and there are five identified early investment opportunities
上海光机所两名员工核酸阳性,园区367人将被转运
这6种实现负载均衡技术的方式不容错过
博文推荐|BookKeeper - Apache Pulsar 高可用 / 强一致 / 低延迟的存储实现
How did musk become Jindong?
Fastjson解析JSON时乱序解决
Drive development - Basics
Niuke network: some sorting problems about the k-th number
杰理之图传确定工程没有开CONFIG_NO_SDRAM_ENABLE宏,工程使用sdram【篇】
Taiwan once again strictly investigated the poaching of mainland enterprises: more than 100 people were dispatched, 10 enterprises were investigated, and nearly 70 people were interviewed!
【tgowt】cmake转ninja构建
杰理之io_key 双按键如何使用?【篇】
巴比特 | 元宇宙每日必读:花旗银行报告称元宇宙经济代表着13 万亿美元的收入机会,有5个确定的早期投资机会...
Kalman filter (KF) unscented Kalman filter (UKF)
官宣!博通将以610亿美元收购VMware,并承担80亿美元债务
Jerry's map modification app_ config. Video of H_ Rec buffer mode and output frame rate [chapter]
Sqlsugar帮助类
JVM-字节码是如何被JVM执行的+关于线程一点思想引子