Regular Expressions 101

Community Patterns

year match

0

Regular Expression
PCRE (PHP <7.3)

/
^\d{4}-\d{4}$
/

Description

2010-2012

Submitted by tazbir - 9 years ago