<?php $string = "Porcupines\nare\n\n\n\nporcupiney."; echo preg_replace('/(?:(?:\r\n|\r|\n)\s*){2}/s', "<br /><br />", $string);
You have javascript disabled. You will not be able to edit any code.