News Feed

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

Tiffany Brown's Blog:
A better RegEx pattern for matching e-mail addresses
December 13, 2006 @ 08:15:00

Though not specifically related to PHP, I wanted to share a helpful tip that Tiffany Brown has posted to her blog today - a nice, compact regular expression to handle the matching of email addresses.

A few weeks ago, I posted a regular expression pattern < href="">for matching e-mail addresses. Below is a more refined version:


Not only does it match the traditional email address formats, but it also will match addresses with periods in the name, British domains, and new TLDs like '.travel' or '.museum'.

0 comments voice your opinion now!
regular expression match email address refined regular expression match email address refined

blog comments powered by Disqus

Similar Posts

I-nfotech: 10 projects every php developer should use

Zoomzum Blog: 10 Powerful PHP Regular Expression For Developers

Scott Johnson\'s Blog: Your Simple PHP Code Snippet for Monday

Developer Tutorials Blog: Testing email routines in web applications

DevShed: Managing Email

Community Events

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

opinion introduction language release symfony framework series security tool interview podcast voicesoftheelephpant list version community laravel artisanfiles composer conference library

All content copyright, 2014 :: - Powered by the Solar PHP Framework