Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
((?![0-9]).{0,1}(12)(?![0-9]).{0,1})|(^12)[,\s]
/
g

Description

Search each occurence of one number in a comma separated list string

Submitted by Tommaso frazzetto - 9 years ago