Regular Expressions 101

Library entries

Validate alphanumeric and numeric range

Vote

1

Regular Expression
pcre

/
^[A-Z0-9]+(?:-[A-Z0-9]+)?(?:,[A-Z0-9]+(?:-[A-Z0-9]+)?)*$
/
gm

Description

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