Re: stripping

From: Date: Thu, 10 Apr 2003 09:38:31 +0000
Subject: Re: stripping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143294@lists.php.net to get a copy of this message
On Thu, 10 Apr 2003 Sebastian wrote : > I tried this: > $comment = eregi_replace("<blockquote>.*?</blockquote>", "", > $comment); > > Shouldn't it replace everything inside, including <blockquote> tags? > > cheers, > - Sebastian Weeelll Not sure, but this should do it : $comment = eregi_replace("<blockquote>[^>]*<\/blockquote>","",$comment); -- Knut ------ Knut H. Hassel Nielsen, knutnie@idi.ntnu.no Divisional Engineer, Office : ITS 207 IDI NTNU, Sem Saelands vei 7-9 N-7491 Trondheim, Norway Phone (+47) 73 59 18 46 Fax (+47) 73 59 44 66 "Pound forehead on keyboard to continue."

« previous php.general (#143294) next »