Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<=&|^)(?i)key(?-i)=[^&\n]*
/
gm
Test String
New
cool=13&nice=zz&key=value&polo=0 Key=value&cool=13&nice=zz&polo=0 cool=13&nice=zz&polo=0&key=value cool=13&nice=zz&myKey=value&polo=0
Extraction
Processing...