Re: [PHP] hopefully easy

2003-01-29 Thread Didier McGillis
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

RE: [PHP] hopefully easy

2003-01-29 Thread Steven Balthazor
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

Re: [PHP] hopefully easy

2003-01-29 Thread 1LT John W. Holmes
> 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