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
/
(?<year>[0-9]{4})-(?<month>[0-9]{2})-(?<day>[0-9]{2})
/
gm
Input 1
New
2019-04-04
Substitution
2019-04-04