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 Regular Expressions

Cyberlot's Blog: Funny little php "virus" floating around Blog: Locating addresses on Google Maps embedded in PHP generated Web forms

Site News: Got a job you want the Community to know about? Let us post it! How to Interact with Web Forms (Part 2)

Community Events

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

unittest series opinion php7 community release voicesoftheelephpant extension introduction api xdebug example library laravel5 language framework laravel interview podcast install

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