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
/
^(https?[^\s?]+\?) ([^\s=]+=[^\s&]+) (?:\&([^\s=]+=[^\s&]+))? (?:\&([^\s=]+=[^\s&]+))? (?:\&([^\s=]+=[^\s&]+))?
/
gx
Input 1
1
New
https://github.com/search?utf8=%E2%9C%93&q=regex%20play&type=Repositories&ref=searchresults https://github.com/search?utf8=%E2%9C%93&q=regex+play&type=Repositories&ref=searchresults&o=desc&s=updated
Substitution
\1\2&\3&\4&\5&o=desc&s=updated