Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(3[01]|[12][0-9]|[1-9])$
/
gm

Description

Check a day of month value (match with integer value between 1 and 31).

Submitted by anonymous - 7 years ago