I would like to match all URLs, except some. I have the regex below. This excludes URLs that end with .html, but I also want to exclude URLs that have (somewhere) 'sub-cat' or 'sub-cat2' in it.
This is however not working currently. What is going wrong? Thanks!
/webshop/category/.*+$(?<!\.html|sub-cat|sub-cat2)