News Feed
Sections




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

Joey's Blog:
8 Practical PHP Regular Expressions
October 17, 2007 @ 10:27:00

On his web development blog, Joey has posted a new list of eight handy regular expressions you can use in your code for common validations.

Here are eight examples of practical PHP regular expressions and techniques that I've used over the past few years using Perl Compatible Regular Expressions. This guide goes over the eight different validation techniques and describes briefly how they work. Usernames, telephone numbers, email addresses, and more.

Each of the regular expressions comes complete with an explanation of what it is and the kinds of strings it's looking for. Comments on the post have helped even more, finding places where they might break or not catch all possibilities.

1 comment voice your opinion now!
regular expression list practical username phone email zip ipaddress date regular expression list practical username phone email zip ipaddress date


blog comments powered by Disqus

Similar Posts

Mike Potter's Blog: Introduction to Adobe Flex Builder for PHP Developers

Dan Scott's Blog: Oooh...looks like I've got (even more) work cut out for me

Ilia Alshanetsky's Blog: PHP 5.2.0 RC1 Released!

Pierre-Alain Joye's Blog: Finally some new features are coming, zip-1.9.0 serie began

PHPMaster.com: Creating a Mobile Photo Blog, Part 1


Community Events





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


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

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