Regular Expressions 101

Library entries

enforce comma-delimited list of words

Vote

0

Regular Expression
javascript

/
^(?:(?:\w|-)+((?:, ?(?=\w))|$))+$
/
gm

Description

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