Thanks....
Matt Matijevich wrote:
<snip> Next, I want to remove excessive CR/LF, [i.e. more than 2]
$text= preg_replace("/\n\n+/", "\n\n", $text);
// remove excess This doesn't seem to do anything. </snip>
not 100% sure this is right but give it a try
$text = preg_replace("/\n\n+|\n\r[\n\r]+|\r\r+/", "\n\n", $text);
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php