Re: strip out too many newlines

From: Date: Thu, 04 Aug 2005 14:56:57 +0000
Subject: Re: strip out too many newlines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220008@lists.php.net to get a copy of this message
that works for my orginal request, but i found something else: $string = '[quote=xx]foo[/quote]\nmore text\r\n\r\n\r\n\r\nmore text'; now if they enter more carriage returns i get the results from above. its no big deal, but you always have someone trying to 'break' the system. thanks, i really need to learn some regexp. Marco Tabini wrote:
Try changing the \n* patterns to (?:\r?\n)* Cheers, Marco -- BeebleX - The PHP Search Engine http://beeblex.com On 8/4/05 10:39 AM, "Sebastian" <sebastian@broadbandgaming.net> wrote:
[quote=user] foo [/quote] <bunch of extra lines> more text...
       
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 8/3/2005

« previous php.general (#220008) next »