Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
US Date Format to ISO using regex substitution
Open Workspace
PCRE2 (PHP)
Substitution
Created 2021-09-23 09:58
1
Regular Expression
/
(?<month>
\d
{1,2}
)
\/
(?<day>
\d
{1,2}
)
\/
(?<year>
\d
{4}
)
/
gm
Description
Convert a US Date format to ISO
Submitted by
Joe Kruger