Regular Expressions 101

Community Patterns

Community Library Entry

14

Regular Expression
ECMAScript (JavaScript)

/
(^[0-9]{4}?[0-9]$|^[0-9]{4}?[0-9]-[0-9]{4}$)
/
gm

Description

no description available

Submitted by jay johnson - 11 years ago