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
/
^([^-]*)(-[a-zA-Z0-9]+){2}-[0-9]+-[0-9]+$
/
gm
Input 1
1
New
abc45-dsg5-gfdvh6-9890-7685 abc abc-gf5-dfg5-asd5-98-00
Substitution
$1
abc45-dsg5-gfdvh6-9890-7685 abc abc-gf5-dfg5-asd5-98-00