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
/
(\/ice\/flag\/(?:[^?#\n]*\/)?)[^\/#?\n]+
/
gm
Input 1
1
New
https://test.com/plants/ice/flag/237468372912873 https://test.com/plants/extra/ice/flag/237468372912873 https://test.com/plants/ice/flag/extra/237468372912873 https://test.com/plants/ice/flag/extra/extra/237468372912873 https://test.com/plants/ice/flag/extra/237468372912873?paramOne=1¶mTwo=2/12#someHash https://test.com/plants/not_ice/flag/237468372912873
Extraction