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.
The regex so far:
preg_replace("/<ol class=\"comment-list\">.*?<\/ol>/", "", $string);
The string in question:
<ol class="comment-list">
<time datetime="2016-03-25T15:27:34+00:00"></ol>
I'm using http://www.phpliveregex.com/ to test it.
Thanks a lot for your help!