Re: How to get all links from a webpage?

From: Date: Mon, 26 Jul 2004 02:05:30 +0000
Subject: Re: How to get all links from a webpage?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-191856@lists.php.net to get a copy of this message
On Mon, 26 Jul 2004 02:03:56 +0800 Jason Wong <php-general@gremlins.biz> wrote: > On Sunday 25 July 2004 13:14, Wudi wrote: > > I repeat: > > > > Hmmm it needs to be able to *find* the links before it can replace them. > > > Just borrow the code that finds the links. > > The "get" links part, the bit which you're interested in, is the regex. So > just plug the regex into ereg() or for this application eregi() may be more > useful. Thank you. I have found a method to get links. But it's slow. The script replaced the links, marked it. And then foreach() all texts were marked. But the blank space always make troubles. Now I'm looking for another way to do it. BTW, what does "regex" mean? -------------------------------------------------- Comment: English is not my first language. Wudi <wudicgi@yahoo.de>

« previous php.general (#191856) next »