I am trying to use StackPath's EdgeRules and their documentation is not very clear or good.
I need to match urls in multiple directories but exclude any URL's that have the extension m3u8
in it or the word segment
in it. This is their docs EdgeRules
This works to limit it to 2 directories.
/(https://example.com(/(pics|vids)/).*)/
But then this doesn't work.
/(https://example.com(/(pix|vids)/).+(?!m3u8|segment).*)/
I've been trying to use https://regex101.com/ but nothing I try seems to work. I don't even know what kind of regex they use. Hopefully can get some help with this.