Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(\b(\d+((-\d+)?))((\s|,)*))*$
/
gm

Description

This pattern needs to validate serial number

Submitted by Raj - 3 years ago