|
Posted by Andy Jeffries on 06/21/06 13:10
On Wed, 21 Jun 2006 12:10:34 +0100, Geoff Berrow wrote:
>>As much as I'd advocate testing over guesswork, I agree with your
>>understanding of why it's much faster.
>>
>>Hope this is interesting to someone.
>
> It is to me, I'd always thought regexs were slower. Bugger, that means I
> will /really/ have to get round to learning them.
AFAIK, ereg* is slower than preg*, that may be where you got this from,
but the PCRE library is lightning fast.
I'd recommend Mastering Regular Expressions by Jeffrey Friedl (O'Reilly) -
it gets a bit mind-numbing in places (talking about the mechanics of how
different regex engines work) but it's a great reference and is quite
readable (given the subject matter).
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
Navigation:
[Reply to this message]
|