Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?=^20)(?=(?:.{5}|.{7}))
/

Description

Length of 5 or 7.

if 7, it should start with 20.

Submitted by Chris Roe - 10 years ago