Re: stripping

From: Date: Thu, 10 Apr 2003 19:47:02 +0000
Subject: Re: stripping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143281@lists.php.net to get a copy of this message
I tried this: $comment = eregi_replace("<blockquote>.*?</blockquote>", "", $comment); Shouldn't it replace everything inside, including <blockquote> tags? cheers, - Sebastian ----- Original Message ----- From: "Jack Dempsey" <dempsejn@georgetown.edu> | just use a regular expression...do a substitution matching a | <blockquote>.*?</blockquote> which is case insensitive and doesn't care | about line breaks (m modifier)...use an empty string as replacement... | | jack | | > -----Original Message----- | > From: Sebastian [mailto:sebastian@dslr.net] | > Sent: Thursday, April 10, 2003 1:55 PM | > To: php list | > Subject: [PHP] stripping | > | > | > Hello, | > How could i strip out everything inside the <blockquote></blockquote> | > including the <blockquote> as well? | > | > cheers, | > - Sebastian | > | > | > [quote] | > [b]some text...[/b] | > | > <blockquote> | > <b>some text...</b> | > some more text.... | > </blockquote> | > | > some more text.... | > [/quote] | > | > | > | > |

« previous php.general (#143281) next »