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+(?=\d{2})|(\d{2})\d+$
/
gm
Input 1
1
New
353451word2423157 anotherword 7412yetanother1 3262andherese123anotherline4359013 5342512354325324523andherese123anotherline45913 532453andherese123anotherline413
Substitution
$1
353451word2423157 anotherword 7412yetanother1 3262andherese123anotherline4359013 5342512354325324523andherese123anotherline45913 532453andherese123anotherline413