I would like to use Regex to sort urls. Moreover, I have domain that I want to exclude. I want to keep all the domain that belong to www.test.com (fictitious example) except : www.test.com/..., www.abc.test.com/..., www.def.test.com/...
The website that I am interested in has many many other subdomains such as www.ghi.test.com , www.jkl.test.com, www.a.test.com ...
I tried to use negative lookup but I have a hard time to find an expression that I'm happy with.
Also I am interested to know if I can just give a list of subdomain and create the regex expression adapted to my case, for example ['www','abc','def']. That would be so much easier to add exceptions
Thanks!