Regular Expressions 101

Community Patterns

US Date Format to ISO using regex substitution

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<month>\d{1,2})\/(?<day>\d{1,2})\/(?<year>\d{4})
/
gm

Description

Convert a US Date format to ISO

Submitted by Joe Kruger - 3 years ago