Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(^\d{4}\d$|^\d{4}\d-\d{4}$)
/
gm

Description

refactor

Submitted by jay johnson - 11 years ago