Regular Expressions 101

Community Patterns

Check date in DD/MM/YYYY

0

Regular Expression
PCRE (PHP <7.3)

/
^([1-9]|1[0-9]|2[0-9]|3[0-1])\/([1-9]|1[0-2])\/202[0-5]$
/
gm

Description

check the date in DD/MM/YYY you can update 202[0-5] to any value as per your need

Submitted by anonymous - 3 years ago