I have a program that breaks down a website hit and records the metrics of it. Meaning breaks it down to elements of the page like pictures, scripts, redirects, etc. and records the loading time, etc. There is a domain that is skewing the metrics so I want to exclude it from the records.
The program accepts regex to match page elements. I came up with this regex to filter out all elements from www.foobar.com
This doesnt seem to work all the time though. Is there another solution that can work every time? Or is there something missing from this regex to complete it?
Any help is appreciated.