Regular Expressions 101

Community Patterns

1...34567...884

Date formatting

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\s*@?(\d{2})[ -_\.]*?(\d{2})[ -_\.]*?(\d{2,4})
/
gm

Description

Format Date from different input

Submitted by fpreppo - 3 months ago