Title |
Test
Find
Email (with Tags)
|
Expression |
([A-Z][\w\d\.\-]+)(?:(?:\+)([\w\d\.\-]+))?@([A-Z0-9][\w\.-]*[A-Z0-9]\.[A-Z][A-Z\.]*[A-Z]) |
Description |
I got tired of sites not recognising my Gmail account when I used tags, so I created this regexp which allows them to be included. Outputted variables are #1 - Username, #2 - Tag (or blank), #3 - Domain |
Matches |
|
Non-Matches |
a@nowhere |
Author |
Rating:
Not yet rated.
Luke Stevenson
|
Source |
http://blog.lucanos.com/ |
Your Rating |
|
Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 10/7/2007 9:07:57 AM
Comment:
Please see RFC822 and RFC2822, or read my column at http://www.stonehenge.com/merlyn/UnixReview/col60.html