title: Use PHP's preg_replace() to return only the value inside the <h1>?
body: <p>How would I use PHP's <code>preg_replace()</code> to return only the value inside the <code>&lt;h1&gt;</code> in the following string (it's HTML text loaded in a variable called <code>$html</code>):</p>
  
  <pre><code>&lt;h1&gt;I'm Header&lt;/h1&gt;
  
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tincidunt porttitor magna, quis molestie augue sagittis quis.&lt;/p&gt;
  
  &lt;p&gt;Pellentesque tincidunt porttitor magna, quis molestie augue sagittis quis. Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/p&gt;
  </code></pre>
  
  <p>I've tried this: <code>preg_replace('#&lt;h1&gt;([.*])&lt;/h1&gt;.*#', '$1', $html)</code>, but to no avail. Am I regex-ing this correctly? And is there a better PHP function that I should be using instead of <code>preg_replace</code>?</p>