Consider using the following one:
^/page/([0-9]+)/order/(.+?)/by/(.+?)/composition/(.+?)/location/(.+?)/price_min/(.+?)/price_max/(.+?)/industry/(.+?)/type/(.+?)$
Two things with your regex:
- You should be using
.+
instead of.*
, since there will always be data between/
and/
. - You should add
?
, which means that it will be non-greedy. It is the equivalent as writing([^/]+)
instead, which means match any character multiple except/
multiple times.