Regular Expressions 101

Sponsors

Library entries

1
javascript

Uppercase words

no description available
Submitted by MaaxZoom - 7 years ago
-2
javascript

Strict email validation

no description available
Submitted by anonymous - 7 years ago
1
javascript

Simple Date regex

With format dd/MM/yyyy
Submitted by Magador - 7 years ago
0
javascript

regex101-8846 on #regex

no description available
Submitted by anonymous - 7 years ago

Regular Expression for Date

Vote

1

Regular Expression
javascript

/
^(?:^(?:(?:(?:(?:(?:0?[13578]|1[02])[- /.]31)|(?:(?:0?[13-9]|1[0-2])[- /.](?:29|30)))[- /.](?:1[6-9]|[2-9]\d)\d{2})|(?:0?2[- /.]29[- /.](?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))[- /.](?:0?[1-9]|1\d|2[0-8])[- /.](?:(?:1[6-9]|[2-9]\d)\d{2}))$)$
/

Description

Loading markdown...
Submitted by Priyanka Khadilkar - 8 years ago