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
/
[&?]tags=([^&\n-]*(?:-[^&\n-]+)*)(?:--(\d+))?
/
g
Input 1
1
New
http://localhost:30001/catalog/search?tags=bed-green-big-33-22-ancient-5--2 http://localhost:30001/catalog/search?tags=bed-green-big-33-22-ancient-5 http://localhost:30001/catalog/search?more1=eee&tags=bed-green-big-33-22-ancient-5--4&gh=1
Extraction