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
/
(?<=\bkey=")(?=.*-xyz(?=-|$))abcd(?:-[a-z]+)+(?=")
/
gm
Input 1
1
New
I found the key="abcd-qwer-qaa-xyz-vwxc" to salvation I found the key="abcd-qwer-qaa-xy-vwxc" to salvation I found the key="abc-qwer-qaa-xyz-vwxc" to salvation
Extraction
I found the key="abcd-qwer-qaa-xyz-vwxc" to salvation I found the key="abcd-qwer-qaa-xy-vwxc" to salvation I found the key="abc-qwer-qaa-xyz-vwxc" to salvation