Regular Expressions 101

US Date Format to ISO using regex substitution

Open Workspace
  • PCRE2 (PHP)
  • Substitution
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