Alexey Zakhlestin's Blog

Programming for Mac and Web

Did You Know…


Did you know, that while preg_match is faster than ereg, mb_ereg is even faster? Well, it is.

It’s all about libraries, actually.

  • “ereg” uses good-ol’ posix library, which is good, but… well… “old”.

  • “preg_match” uses PCRE

  • “mb_ereg” uses ultra-fast Oniguruma library