当前位置:网站首页>常用正则表达式
常用正则表达式
2022-06-24 19:42:00 【程序员久安】
常用正则表达式
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身份证
MOBILE REGEXP '^1([3578][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$' 手机号
yyyy/MM/dd格式时间校验:
'(([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)$'
时间 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
边栏推荐
- Learn about redlock
- JD 618 conference tablet ranking list announced that the new dark horse brand staff will compete for the top three, learning from Huawei, the leader of domestic products
- Selection (028) - what is the output of the following code?
- Selection (029) - what is the output of the following code?
- 对抗训练理论分析:自适应步长快速对抗训练
- How to submit the shopee opening and settlement flow?
- Daily practice (22): maximum sum of continuous subarrays
- 2022 simulated 100 questions and simulated examination of high-altitude installation, maintenance and demolition
- China solar window market trend report, technical dynamic innovation and market forecast
- 伪原创智能改写api百度-收录良好
猜你喜欢
非单文件组件
Getting started with the go Cobra command line tool
对抗训练理论分析:自适应步长快速对抗训练
Pousser l'information au format markdown vers le robot nail
Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)
[ROS play with turtle turtle]
JD 618 conference tablet ranking list announced that the new dark horse brand staff will compete for the top three, learning from Huawei, the leader of domestic products
Solution to the login error of tangdou people
canvas 实现图片新增水印
02_SpingBoot 入门案例
随机推荐
[laravel series 7.9] test
Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧
Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk
Selection (028) - what is the output of the following code?
Getting started with the go Cobra command line tool
Docker installation redis- simple without pit
02_SpingBoot 入门案例
非单文件组件
23研考生注意啦!备考期间最容易中招的骗局,居然是它们?!
Selection (029) - what is the output of the following code?
Research Report on market supply and demand and strategy of ceiling power supply device industry in China
Laravel user authorization
China Sky Lantern market trend report, technical dynamic innovation and market forecast
【js】-【数组应用】-学习笔记
Common sense of resolution
It's hard to hear C language? Why don't you take a look at my article (7) input and output
01_SpingBoot 框架入门
How should we measure agile R & D projects?
Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
EPICS record Reference 3 - - field available for all Records