title: PHP preg_replace html tag containing line breaks
body: <p>I'm trying to remove a certain html tag with preg_replace but I can't find any way to do it, it's working if I remove the line breaks but not with.</p>
  
  <p>The regex so far:</p>
  
  <pre><code>preg_replace("/&lt;ol class=\"comment-list\"&gt;.*?&lt;\/ol&gt;/", "", $string);
  </code></pre>
  
  <p>The string in question:</p>
  
  <pre><code>&lt;ol class="comment-list"&gt;
  &lt;time datetime="2016-03-25T15:27:34+00:00"&gt;&lt;/ol&gt;
  </code></pre>
  
  <p>I'm using <a href="http://www.phpliveregex.com/" rel="nofollow">http://www.phpliveregex.com/</a> to test it.</p>
  
  <p>Thanks a lot for your help!</p>