Re: how to strip empty lines out of a txt using preg_replace()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-09-04 at 14:58 +0200, Ralph Deffke wrote:
> Hi all, I'm a bit under stress, maybe somebody knows the regex on a snap.
> using PHP_EOL would be great.
> 
> thanks
> ralph_deffke@xxxxxxxx
> 
> 
> 
The regex that would match a line containing only whitespace would look
like this:

^\s*$

Thanks,
Ash
http://www.ashleysheridan.co.uk




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux