Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:\d{4}|\d{6})$
/
gm

Description

Submitted by anonymous - 5 years ago