RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread Jay Blanchard
[snip] I asked this question a while ago, and I am still seeking clarification, I fooled with ereg_replace and they only do a piece of what I want, I would like to know how to keep only a chunk of text defined between 2 tags let's say, div and /div and ignore everything else, I also have to

Re: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread Joseph W. Goff
preg_match('!div[^]+(.*)/div!Uis',$info,$regs); $everything_between_divs=$regs[1]; - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 11:44 AM Subject: RE: [PHP] so nobody knows how do get rid of everything

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread David Buerer
,$pos_endtag-$pos_startag-1); return $newsttring; -Original Message- From: Joseph W. Goff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] so nobody knows how do get rid of everything outside or certain tags

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread victor
PROTECTED]] Sent: Thursday, August 15, 2002 12:54 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] so nobody knows how do get rid of everything outside or certain tags? preg_match('!div[^]+(.*)/div!Uis',$info,$regs); $everything_between_divs=$regs[1]; - Original Message

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread vic
: Thursday, August 15, 2002 12:54 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] so nobody knows how do get rid of everything outside or certain tags? preg_match('!div[^]+(.*)/div!Uis',$info,$regs); $everything_between_divs=$regs[1]; - Original Message - From: Jay Blanchard