title: Regular expressions preg_match with line breaks
body: <p>I'm trying to match a string inside an HTML </p>
  
  <p>for example I want to find the string inside <code>&lt;strong&gt; string &lt;/strong&gt;</code> </p>
  
  <p>what I'm doing is</p>
  
  <pre><code>preg_match_all('|\&lt;strong\&gt;(.*)\&lt;\/strong&gt;|',$html,$data);
  
  echo $data[1][0];
  </code></pre>
  
  <p>it works when the string I want to search inside <code>&lt;strong&gt;</code> is not a line break
  but if it has a line break, how can I do it?</p>
  
  <p><strong>not working</strong> example:</p>
  
  <pre><code>&lt;strong&gt;
  line break string
  &lt;/strong&gt;
  </code></pre>