I have to rewrite URLs which don’t include specific words like ‘contact’, ‘about’, ‘list’ etc. (I know it would have been easier to check for the ones for which I want to do the rewriting, but it’s not possible in my case).
I found how to check for a single word:
^(?:(?!list).)+$
Is there a way I can verify something like:
^(?:(?!list).)+$ AND ^(?:(?!contact).)+$ AND ^(?:(?!about).)+$ AND ... ?
would cover all these cases.