Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Capture Query Strings
Open Workspace
Python
Match
Created 2016-05-15 10:22
3
Regular Expression
r"
(
(?<=
[
\?\&
]
)
foo
\=
[^
\&\#
]
*
)
|
(
(?<=
[
\?\&
]
)
foo
(?=
[
\&\#
]
)
)
|
(
(?<=
[
\?\&
]
)
foo
(?!
.
)
)
"
g
Description
A solution for capture query params.
Submitted by
Rafael Laurindo