Regular Expressions 101

Community Patterns

1...56789...901

Community Library Entry

15

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