Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?:\d{2,3},)+(\d{2,3}),?$|^\d{2,3}$
/
gm
Input 1
1
New
//pass 12,123,56,567,789,11 12,123,56,567,789,11, 12 123 //fail 12,123,56,567,789,11a a12,123,56,567,789,11 12,123,56,567,789,1 1,123,56,567,789,11 1234,123,56,567,789,11 12,123,56,567,789,1123 1 1234
Extraction