Regular Expressions 101

Community Patterns

MDY Date in Slash Form

1

Regular Expression
PCRE (PHP <7.3)

/
^((0?[1-9])|(1[0-2]))\/((0?[1-9])|((1|2)[1-9])|(3[0,1]))\/[1,2][0-9][0-9][0-9]$
/

Description

MM/DD/YYYY

Submitted by jonnyt - 8 years ago