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"
X.*
"
gm
Input 1
A-B-1_u A-B-2_u A-B-3_u A-B-4_u A-B-5_u X-Y1 X-Y1
Substitution
A-B-1_u A-B-2_u A-B-3_u A-B-4_u A-B-5_u X-Y1 X-Y1