I'm trying to use regex on Stylish addon for browsers, to match a website.
This regex needs to match one domain (we will name it website.com
)
And this is how it should work :
- any subdomain allowed
- http or https too
- website.com/team* => not allowed
- website.com/forum* => not allowed
- website.com* => allowed
This litteraly mean it should work for any pages of the website but any links with /team or /forum right after the .com don't work.
I tried that
((\w+)*\.\w{2,6})(\/)(?!team|forum)([^\s]+)
But it doesn't work and I don't know how to make it to match only the domain website.com
Just another question, is it this kind of regular expression that work for Stylish? I didn't find anything on Google about it