1 2 3 4 5 6
<?php $str = '<br><br><br><br><br><br>Another text here<br>'; echo preg_replace('#(<br\s?/?>){2,}#', '<br><br>', $str ); ?>
1
<br><br>Another text here<br>