title: preg match not reading content between table
body: <pre><code>preg_match_all('|&lt;table cellspacing="0" cellpadding="0" summary="Flight Timetable search results" id="timeTable"&gt;(.*?)&lt;/table&gt;|', $read, $foo, PREG_SET_ORDER);
  print_r($foo);
  </code></pre>
  
  <p>output as just </p>
  
  <p>Array ( ) </p>
  
  <p>Where i made mistake</p>
  
  <p>See guys , </p>
  
  <p>Actually i want to grab the exact details from this <a href="http://www.heathrowairport.com/portal/site/heathrow/template.PAGE/menuitem.a43f3a72926ca3b1b0c52a499328c1a0/?javax.portlet.begCacheTok=token&amp;javax.portlet.endCacheTok=token&amp;javax.portlet.tpst=bde211e38117ef94303fde9faca12635&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightRoute=&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightNumber=9W5048&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightTerminal=" rel="nofollow noreferrer">URL</a> </p>
  
  <p>i want to pick this details from this URL </p>
  
  <p>08:35   9W5048       TORONTO     EXPECTED 1358      Terminal three</p>
  
  <p>So i tried this snippet , but it throwing Error like </p>
  
  <p>this is my snippet </p>
  
  <blockquote>
    <p>$read = file_get_contents("<a href="http://www.heathrowairport.com/portal/site/heathrow/template.PAGE/menuitem.a43f3a72926ca3b1b0c52a499328c1a0/?javax.portlet.begCacheTok=token&amp;javax.portlet.endCacheTok=token&amp;javax.portlet.tpst=bde211e38117ef94303fde9faca12635&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightRoute=&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightNumber=9W5048&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightTerminal=" rel="nofollow noreferrer">http://www.heathrowairport.com/portal/site/heathrow/template.PAGE/menuitem.a43f3a72926ca3b1b0c52a499328c1a0/?javax.portlet.begCacheTok=token&amp;javax.portlet.endCacheTok=token&amp;javax.portlet.tpst=bde211e38117ef94303fde9faca12635&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightRoute=&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightNumber=9W5048&amp;javax.portlet.prp_bde211e38117ef94303fde9faca12635_flightTerminal=</a>");
    //echo $read;
      preg_match_all('/(.<em>?)&lt;/table>/si', $read, $foo, PREG_SET_ORDER);
      $read1 = $foo[0][0];
      preg_match_all('/(.</em>?)&lt;/tbody>/si', $read1, $foo1, PREG_SET_ORDER);
      print_r($foo1[0][0]);</p>
  </blockquote>
  
  <p>I got Error like </p>
  
  <pre>
  Notice: Undefined offset: 0 in E:\wamp\www\plugin\read-airport-arraiwals.php on line 6
  
  Notice: Undefined offset: 0 in E:\wamp\www\plugin\read-airport-arraiwals.php on line 8
  </pre>