Regular Expressions 101

Community Patterns

1...56789...587

Starts with year in range 2016 to 2050

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^20(1[6-9]|[2-4][0-9]|50)
/
gm

Description

Starts with a year in the range of 2016 to 2050

Submitted by Abhi Reddy - a year ago