title: PHP - Parsing iFrame from an HTML Page
body: <p>Hey guys so I have a basic PHP application that loads a page with a video on it from one of those free TV streaming sites.  You set the episode, season and show you wish to view and the server application parses the HTML tag of the iFrame that contains that video.  The application works by parsing the HTML page with the PHP <code>preg_match_all()</code> method to get all occurrences of the <code>iFrame</code> HTML tag.  I use the following string as the pattern, <code>"/iframe .*\&gt;/"</code>.  This works for about half of the video players on the site, but for some reason comes up dry with all of the others.  </p>
  
  <p>For examples the video at <a href="http://www.free-tv-video-online.me/player/novamov.php?id=huv5cpp5k8cia" rel="nofollow">http://www.free-tv-video-online.me/player/novamov.php?id=huv5cpp5k8cia</a> which hosted on a video site called <code>novamov</code> is easily parsed.  However, the video displayed at <a href="http://www.free-tv-video-online.me/player/gorillavid.php?id=8rerq4qpgsuw" rel="nofollow">http://www.free-tv-video-online.me/player/gorillavid.php?id=8rerq4qpgsuw</a> which is hosted on <code>gorillavid</code>, is not found by the <code>preg_match_all()</code> function despite it clearly being displayed in the HTML source when the element is inspected using chrome.  Why is my script no returning the proper results and why is this behaviour dependant on the video player the video is using? Please could someone explain?</p>