News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alexey Zakhlestin's Blog:
Ode to mb_ereg functions
November 30, 2009 @ 14:38:52

Alexey Zakhlestin has written an ode to the mb_ereg functions - a set of regular expression based functions that are more than just for unicode strings:

There is a common misunderstanding, that mb_ereg_* functions are just unicode counterparts of ereg_* functions: slow and non-powerful. That's as far from truth as it can be. mb_ereg_* functions are based on oniguruma regular expressions library. And oniguruma is one of the fastest and most capable regular expression libraries out there. Couple of years ago I made a little speed-test.

He talks about some of the options you can give it (ignore case, find-longest, multiline) and modes (grep, java, perl, etc). A few code examples are also included.

0 comments voice your opinion now!
mbereg function example


blog comments powered by Disqus

Similar Posts

Phil Thompson's Blog: 7 PHP functions that saved my life

Recess Blog: Functional PHP 5.3 Part I - What are Anonymous Functions and Closures?

Builder.com.au: How do I...recursively scan directories with PHP's DirectoryIterators?

Carson McDonald's Blog: Google OAuth for Installed Apps PHP Example

Rochak Chauhan's Blog: Top Ten Security Vulnerabilities in PHP Code


Community Events

Don't see your event here?
Let us know!


version interview community extension podcast opinion api example framework performance php7 series laravel release conference xdebug symfony2 voicesoftheelephpant library introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework