News Feed
Sections




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

Ken Guest's Blog:
Validation in Depth - a retort to using just regular expressions
May 27, 2008 @ 07:58:54

Ken Guest, in a response to another post from a different blogger, has posted some of his own validation replacements for the regular expression method the other blogger chose.

I've noticed that Richard Heyes, who professes himself to be a php guru, deleted my comment on his "Some common regular expressions" posting which simply pointed out his expressions didn't quite do the job and suggested a few PEAR packages that should be used instead of the expressions that he proffered

His examples have the benefit of what he calls "defense in depth" - the functionality to catch a bit more than just a regular expression can alone. His examples include PEAR_Validate for email addresses, Net_CheckIP2 for IP addresses and the Validate_UK package for the sort code and telephone numbers.

0 comments voice your opinion now!
pear package regular expression validate email telephone ipaddress domain


blog comments powered by Disqus

Similar Posts

IBM developerWorks: PHP encryption for the common man

Zend Developer Zone: Using the Stack Exchange API with PHP (part 1)

Travis Swicegood's Blog: PHPT_Ensure v0.1alpha and PHPT_Core v0.1.1alpha released

Lorenzo Alberton's Blog: Navigation Through Paragraphs in an Article

Christopher Jones' Blog: PHP 5.2.5 RPMs with OCI8 and PDO_OCI are available


Community Events





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


tips framework interview opinion library laravel release introduction bugfix symfony install deployment series voicesoftheelephpant package language api list community podcast

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