Regular Expressions 101

Community Patterns

2

object

PCRE2 (PHP >=7.3)
Json Object
Submitted by anonymous - 3 years ago

Date with this format YYYY-MM-DD and year start 20 or 21

-4

Regular Expression
PCRE (PHP <7.3)

/
^(20|21)[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$
/
date php

Description

Loading markdown...
Submitted by cisc0 - 10 years ago