Re: how to extract part of HTML page
- From: r0g <aioe.org@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Sep 2008 06:22:58 -0400
Sjoerd wrote:
On Tue, 16 Sep 2008 18:14:31 -0400, Jerry Stuckle wrote:
Ecka wrote:
Hmmm, to me a regex seems a bit overkill here. There's a lot of
overhead with regex's.
A preg_match() such as those suggested take on my system approx 93
microseconds. Will the user notice that? Is it worth the hassle to
rewrite it to use strpos() and substr(), even though that may be several
times faster?
Well I guess it depends how far and wide and often your man plans on
scraping! For google scale operations things like this are a significant
factor, although I have to agree chances are it's going to be pretty
insignificant in this case :]
Roger.
.
- References:
- how to extract part of HTML page
- From: Ecka
- Re: how to extract part of HTML page
- From: Jerry Stuckle
- Re: how to extract part of HTML page
- From: Sjoerd
- how to extract part of HTML page
- Prev by Date: Re: Can't launch graphical apps from php exec() on Ubuntu 8.04 system.
- Next by Date: Re: how to extract part of HTML page
- Previous by thread: Re: how to extract part of HTML page
- Next by thread: Re: how to extract part of HTML page
- Index(es):
Relevant Pages
|