How to make this Regex expression to exclude some catalog on the site?

Viewed 13

I need help with a valid RegEx expression for Perfmatter (Wordpress plugin) to remove certain javascript from all the pages of the website except [home page] and [folder1 and all its subfolders] and [folder2 and all its subfolders] (with or without trailing slashes).

The example of URL to exclude is

mysite.com/folder1/subfolder1

I know it is simple but nonetheless... Please help me. Thanks in advance.

0 Answers
Related