Here is what I have so far:
^https?:\/{2}(?:[^.]+\.)website\.com\/(?:public)?(?!images|download|df\.php).*$
But it's NOT working.
It should NOT match the following:
https://www.website.com/images/picture.jpg
https://www.website.com/download/file.rar
https://www.website.com/df.php?id=123
https://www.website.com/public/images/picture.jpg
https://www.website.com/public/download/file.rar
https://www.website.com/public/df.php?id=123
What flavor, what flags? I couldn't get it to match those.
>>62021728
You up to no good
>>62021895
The flavor. I'm not sure, but it has to be Javascript regular expression.
Just the "i" flag (case-insensitive).
>>62021728
>ASCII puke.
Nice.
>>62021728
>.*$
You can just leave that. There's no need for the engine to keep matching all those tokens all the way to the end.
Try adding / to the end of each directory. Perhaps it's seeing images and images/ differently.
https://regex101.com/
This site is great to live test a regex
https://man.openbsd.org/re_format.7
>>62022082
/public can be optional, but the regexp it should NOT match any string that contains the substring /public/images, /images and so on.
I figured out already. Thanks.
>>62022102
Thanks for the site.
>>62021728
use awk