I need to match a url path with that contain any of 2 words vendor_tracks or shop_types, but shop types should be followed by a ' / '
My current REGEX is
//(vendor_tracks|shop_types)/
, but this match if contain shop_types/22
I need my Regex to match something like :
/shop_types?q%5Btrack_department
but NOT the below url
/shop_types/27/list_pinned_vendors
My current accepts both, while I need it to accept only the first. I tried many different methods to exclude the "shop_types" followed by / but always get escaped backslash error. Any solution for this? or alternative REGEX