Regular Expressions 101

Community Patterns

Numbers separated by comma and whitespace

-2

Regular Expression
PCRE (PHP <7.3)

/
^([0-9]+)(,\s?[0-9]+)*,?\s?$
/
gm

Description

no description available

Submitted by anonymous - 9 years ago