On Monday 24 June 2002 16:56, Justin French wrote:
> Well, in short, you want to replace \n\n\n or \n\n\n\n with \n\n.
> This can be done cleaverly with a regexp (not my expertise at all, but you
> want to replace 3 or more occurences of \n in a row with \n\n.

To add my tuppence's worth, I would search for and remove any white spaces 
between \n's as well. Something like replace "\n\s*\n" with "\n".

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

It's a .88 magnum -- it goes through schools.
                -- Danny Vermin

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to