Something like this:

$grab = eregi("Some leading code(.*)Some trailing code");

the (.*) is what you're grabbing.

Mick

On Sun, 22 Apr 2001, Ed Lazor wrote:

> Hi =)
> 
> I'm trying to grab content from another web page.  After having browsed 
> through the mailing list archives and such, it looks like I'll need to use 
> the eregi_replace function, but I'm not sure how to properly format the 
> command.  The goal is to get rid of everything from the start of the page 
> up to the word "Wish" and everything after the word "numbers".  Or, another 
> way of phrasing it, I'm wanting to get a web page and only use the content 
> between the words "Wish" and "numbers".  What would be the best way of 
> going about this?
> 
> Thanks,
> 
> -Ed
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to