What Regex can I use that includes ONLY the first option below, excluding the other two?
- www.site.com/products/category_name
- www.site.com/products/category_name/
- www.site.com/products/category_name/product_name
I've tried ^www.site.com/products/(.*)[^/]$ but it also takes the last option as valid.
On the other hand, what Regex can I use to include the first URL below and exclude the second one with parameters?
- www.example.com/en-gb/category/example-of-product
- www.example.com/en-gb/category/example-of-product tduid=5758f21169858a7e15da57791c070f0d
Many thanks!