Regular Expressions 101

Community Patterns

Date03

0

Regular Expression
PCRE (PHP <7.3)

/
^([0-9]{4})(\s*|\/|[-]|[.])([0-1][0-9])(\s*|\/|[-]|[.])([0-9]{2})$
/
gm

Description

Loading markdown...
Submitted by playwhyyza - 5 years ago