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{3})\B
/
gm
Input 1
0987654321 987654321 87654321 7654321 654321 54321 4321 321 21 1
Extraction
0987654321 987654321 87654321 7654321 654321 54321 4321 321 21 1