Regular Expressions 101

Library entries

Comma-separated numbers with ranges

Vote

-2

Regular Expression
javascript

/
^(\d+(-\d+)?)(,(\d+(-\d+)?))*$
/

Description

Loading markdown...
Submitted by Eugene - 7 years ago