Re: how to extract part of HTML page



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?
.



Relevant Pages

  • Re: how to extract part of HTML page
    ... Hmmm, to me a regex seems a bit overkill here. ... overhead with regex's. ...
    (comp.lang.php)
  • Re: How to change the first character of Dim variable names to upper case
    ... in the ide`s find and replace dialog, there is the option to use Regex, ... although in my opinion it is a bit overkill for what you want to acomplish a ... upper case. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Contains for string?
    ... Tom ... luckily this regex is easy. ... Yes it has some inherit overhead the other ... > wordsAs String) As Boolean ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Contains for string?
    ... luckily this regex is easy. ... Yes it has some inherit overhead the other ... wordsAs String) As Boolean ... Notice in both cases that the actual method (algorithm) of matching is ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Only allowing alphanumeric characters and _ and -
    ... but would imagine the difference is approximatly "who cares" ... ... nonetheless I just think of regex's as overkill in many situations where people try to use them. ... Regex is simple code (and if the reader knows regex as a general concept ...
    (microsoft.public.dotnet.languages.csharp)