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