You are here: Re: Change alternate commas to semi colons... « PHP Programming Language « IT news, forums, messages
Re: Change alternate commas to semi colons...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация