title: preg_match , only works locally
body: <p>This is the code that works, locally.</p>
  
  <pre><code>$str = &lt;&lt;&lt;SSS
    &lt;H1 class="prodname"&gt;Alison Raffaele Reality Base&lt;/H1&gt;Foundation, Skintone 1 - Fairest&amp;nbsp;1 fl oz (30 m)&lt;p class="tip"&gt;&lt;table id="TblProdForkSellCopy" width="100%" border="0"&gt;&lt;tr&gt;&lt;td class="contenttd"&gt;&lt;p&gt;Get full, flawless coverage with this luxurious oil-free formula. Continually refreshes and re-hydrates your skin for 12+ hours - and guards against premature aging by deflecting damaging free radicals. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;
  SSS;
  
  preg_match("~&lt;/[hH]1&gt;(.+?)&lt;p~",$str,$name)  ;
  var_dump($name) ;
  </code></pre>
  
  <p>But doesn't work when the page is actually parsed. Why ? Link to the <a href="http://www.beauty.com/alison-raffaele-reality-base-foundation-skintone-1--fairest/qxp184230?catid=179216" rel="nofollow">page</a> . 
  Is there anything wrong with my code. I have copy pasted exactly from the page.
  Oh and by doesn't work I mean it matches too much. When matched locally the first <code>'&lt;p'</code> isn't included , but in my actual script (when the page is downloaded from the net) it includes the <code>'&lt;p'</code> tag for some reason.</p>
  
  <p>Thanks</p>