title: Matching a multiple lines pattern via PHP's preg_match()
body: <p>How can I match <em>subject</em> via a PHP preg_match() regular expression pattern in this HTML code:</p>
  
  <pre><code>      &lt;table border=0&gt;
    &lt;tr&gt;
    &lt;td&gt;
  
  
    &lt;h2&gt;subject&lt;/h2&gt;
  
  
  
      &lt;/td&gt;
  </code></pre>
  
  <p>All the whitespaces and newlines are left on purpose. So the problem is in extracting subject name using some multiple line pattern.</p>