News Feed
Sections




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

Jacob Santos' Blog:
The Sexy Filter Extension and Fear of Regex
July 26, 2006 @ 06:24:13

Jacob Santos has posted a new entry on his blog today with his own take on regular expressions and their collaboration with the Filter extension in PHP.

Regular Expressions are a powerful way to parse and evaluate strings. They can be fun sometimes, but there is rarely an indication of the reason why they fail.

I knew it would be satisfying, once I seen this (the Filter extension) in passing on the php.net site. It uses the procedural method, which I think fits perfectly. If you try to throw objects at a novice than most aren't likely to use what you give. It is really simple to use, so there is no longer any excuse for an developer to not be using it, if using PHP 5.2+.

He gives examples of email validation methods both with and without the Filter extension, making it abundantly clear which is easier - a simple call to filter_data validates with no muss or fuss.

0 comments voice your opinion now!
regular expression filtering extension php5 filter_data regular expression filtering extension php5 filter_data


blog comments powered by Disqus

Similar Posts

Chris Jones' Blog: PHP 5.3.8 RPMs are on oss.oracle.com

Daniel Cousineau's Blog: PHP 5.3 and Closures

Matthew Weir O'Phinney's Blog: PHP 5's Reflection API

DevShed: More Examples of Creating Command Objects with PHP 5

php|architect: The CodeWorks 2010 early-bird extended to October 4th (TODAY!)


Community Events





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


code interview developer list laravel introduction zendserver threedevsandamaybe community framework podcast series tips conference release symfony language development deployment api

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