Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^((?:\d{6})(?:(?:,[^\n]\d{6}){1,})?)$
/
gm
Input 1
1
New
123456 123456, 456789, 987654 1 , 123456, 123456, 987654, 123456, 123456 123456, 456789, 987654, 123456, 1234567 123456, 456789, 987654, 123456, 123456, 345678 1, , , 123,
Extraction
123456 123456, 456789, 987654 1 , 123456, 123456, 987654, 123456, 123456 123456, 456789, 987654, 123456, 1234567 123456, 456789, 987654, 123456, 123456, 345678 1, , , 123,