title: preg to extract from h1 tag
body: <p>I have this content:</p>
  
  <pre><code>&lt;h1 class="contf _48_black caphead"&gt;
      &lt;span&gt;The essence of social media is knowing your audience and engaging them in something they love. In real-time, relevance and resonance!&amp;nbsp;&lt;/span&gt;
      &lt;a href="https://twitter.com/" target="_blank"&gt;
          &lt;img class="retwt" src="images/retweet.svg"&gt;
      &lt;/a&gt;
      &lt;span class="secmov"&gt;&lt;img src="images/arrow.svg"&gt;&lt;/span&gt;
  &lt;/h1&gt;
  </code></pre>
  
  <p>I am trying to extract the content from the h1 TAG as follows but not able to get it.</p>
  
  <pre><code>&lt;?php
  $result = &lt;h1 class="contf _48_black caphead"&gt;
          &lt;span&gt;The essence of social media is knowing your audience and engaging them in something they love. In real-time, relevance and resonance!&amp;nbsp;&lt;/span&gt;
          &lt;a href="https://twitter.com/" target="_blank"&gt;
              &lt;img class="retwt" src="images/retweet.svg"&gt;
          &lt;/a&gt;
          &lt;span class="secmov"&gt;&lt;img src="images/arrow.svg"&gt;&lt;/span&gt;
      &lt;/h1&gt;;
  
  preg_match_all('$&lt;h1(.*?)&lt;/h1&gt;$i',$result, $subresult);
  print_r($subresult);
  
  ?&gt;
  </code></pre>
  
  <p>where as the following works- </p>
  
  <pre><code>preg_match_all('$span&gt;(.*?)&lt;/span&gt;$i',$result, $subresult);
  </code></pre>
  
  <p>Can some one please let me.</p>