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
/
^(.+order_by=).+?(&|$)(.*)$
/
gm
Input 1
1
New
http://www.stackoverflow.com?a=1&b=2 http://www.stackoverflow.com?a=2&b=3&order_by=old_data http://www.stackoverflow.com?a=2&b=3&order_by=old_data&c=4 http://www.stackoverflow.com?order_by=old_data&a=2&b=3 http://www.stackoverflow.com $1new_sort$2$3
Substitution