Re: so nobody knows how do get rid of everything outside or certain tags?
| From: | Justin French | Date: | Thu, 15 Aug 2002 16:49:15 +0000 |
| Subject: | Re: so nobody knows how do get rid of everything outside or certain tags? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112808@lists.php.net to get a copy of this message | ||
Trust me ereg_* or preg_* IS what you want, aside from rolling your own HTML
parser from scratch!!
I've got some code at the office -- i'll try and remember to post it
tomorrow, but otherwise email me direct to remind me.
Justin French
on 16/08/02 2:33 AM, victor@argilent.com (victor@argilent.com) wrote:
> 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 search and replace certain tags between, but I know how to do that
> with ereg_replace. So can anyone help me echo only what is between the
> div tags? Please?
>
> - Vic
>
>
>
> ______________________________________________________________________
> Post your ad for free now! http://personals.yahoo.ca