Didn't work. I'm beginning to think the problem is more involved. I am going to break out just the essentials of the code that is involved and debug just it.

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



Reply via email to