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
/
\?(utf8=[^\s&]*)\&(q=[^\s&]*)\&([^\s&=]*=[^\s&]*)\&([^\s&=]*=[^\s&]*)$
/
gm
Input 1
1
New
https://github.com/search?utf8=✓&q=python&type=Repositories&ref=searchresults https://github.com/search?o=desc&q=python&ref=searchresults&s=updated&type=Repositories&utf8=✓ https://github.com/search?utf8=✓&q=python&type=Repositories&ref=searchresults https://github.com/search?o=desc&q=python&ref=searchresults&s=stars&type=Repositories&utf8=✓
Substitution
?o=desc&\2&\4&s=updated&\3&\1