Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^([1-9]{1}|(0[0-9]|1[0-2]))\/([1-9]{1}|0[1-9]|1\d|2\d|3[01])\/\d{4}$
/
Unit Tests
01/32/1990
→ regex does not match
01/31/1990
→ regex does match
01/01/1990
→ regex does match
13/1/1990
→ regex does not match
12/1/1990
→ regex does match
1/1/1990
→ regex does match