Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
XY(\d+)(.*)
/
gm
Input 1
1
New
XY1239:thiSWORD:a6b4ba21ba54f6bde411930b0d88432f XY545:thiSWORD:b598944d1ba4c787e411800b8043559c XY4239:thiSWORD:a6b4ba21ba54f6bde411930b0d8817c6
Extraction