Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^D(\d*)-(\d*)-(\d*)$
/
gm

Description

Transforms an ISO date (YYY-MM-DD) into a French format date (DD/MM/YYYY). Substitute : D$3/$2/$1

Submitted by Christian CROCHE - a year ago