I am using $entirePage = file_get_contents("http://whatever.com"); to put the entire contents of a webpage into the variable. Which preg functions should I use to parse it for a regular expression I wrote and return all the matches?
Or do I need to do something with preg_match_all and use the offset flag to run generate substrings?
In additon this is my regex, if its incorrect or can be improved I'd be happy to get suggestions:
/"http://www.[a-zA-Z0-9-]+.[a-zA-Z]+[a-zA-Z0-9/-]"/
(I'm looking for it to appear in quotes)