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
r"
(?:\w+-){2,}[^,\n]*
"
g
Input 1
0 A067-M4FL-CAA-020 1 MRF2-050A-TFC,60 ,R-12,HT 2 moreinfo 3 MZF8-050Z-AAB 4 GoCats 5 MZA2-0580-TFD,60 ,R-669,LT
Substitution
0 A067-M4FL-CAA-020 1 MRF2-050A-TFC,60 ,R-12,HT 2 moreinfo 3 MZF8-050Z-AAB 4 GoCats 5 MZA2-0580-TFD,60 ,R-669,LT