Quite so. has_prefix() is about twice as fast as a regexp match for "^something", for instance, not counting the setup time to create a Regexp object. Knowing when to pick up your power drill and when to use some light handy tool will remain a practice worth picking up. :)
/ Johan Sundström, Lysator
Previous text:
2003-09-19 16:48: Subject: Re: Adding PCRE to Pike
That's not a comparision worth using however. Only shows regexp aren't the god given solution to all problems.
/ David Hedbor