I'm going to have 2 different sets of URLS
/marketplace/producer/123-producer-name
/marketplace/producer/123-producer-name/5-genre/500-max-price/0-added/newest/1-page
I know the regular expression for the second, but for the first one i'm finding it tricky. I'm trying to match the expression, but I want to make sure it doesn't match the second one as well. I'm using the following;
/\/marketplace\/producer\/([0-9]+)\-[^\/]/
My logic at the end being match every character except a forward slash, which would then mean it's s possible match for the second one. But when I test it, it returns true even with a forward slash. What am I doing wrong?
#\/mark....-[^\/]##/mark....\-[^/]#as the modifier was changed (hence you wouldn't have to escape slashes?)