Re: stripping tags with regex ?

From: Date: Tue, 03 Apr 2001 17:57:48 +0000
Subject: Re: stripping tags with regex ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-46881@lists.php.net to get a copy of this message
I was interested in stripping the content between the tags too though. the content between the tags is allways 18 char so I did this. $article_body = ereg_replace("<image+>.{18}</image> ", '', $article_body); that seemed to work. oi, regex is bad stuff, haha. -- Chris Lee lee@mediawaveonline.com "Christian Reiniger" <creinig@mayn.de> wrote in message news:01040320291201.00590@chrisbig... On Tuesday 03 April 2001 17:57, you wrote: > I have this > > <image>...</image> > or > <image left>...</image> > or > <image right>...</image> > or > <image top>...</image> > > I want to strip the all that out of my text. I havent a clue about > regex, I wish I did. could I get some insight, even a site to learn a > little more. ? thanks use strip_tags() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#46881) next »