cool thanks
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
Reply-To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Didier McGillis" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: Re: [PHP] hopefully easy
Date: Wed, 29 Jan 2003 08:5
I have some code out of my own library which kind of does this; you probably
need to play with it to do exactly what you want:
preg_match_all("|<{$tag}[\s]*?>(.*?)|si",$text,$matches);
print_r($matches);
Where:
$tag is the tag you are looking for
$text is the text string you are searching throu
> I need to parse an HTML file for certain information. Like the text
between
> .
>
> So if the html was ...
>
>
>
> The page
>
>
>
>
> Lots of code .
>
>
>
>
> I would just like the "The page" text.
preg_match("!(.*)!si",$html,$match);
echo $match[1];
That will account fo
3 matches
Mail list logo