RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Single Email Match - current June 2010
Expression
^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2}|aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel)$
Description
Matches email addresses. Based on expression at regular-expressions.info/email.html modified to include all top-level domains (TLD)listed on wikipedia as of June 2010. Needs to be updated as new TLDs are added. Known Issues: * IP Addresses will not validate * Double "at" symbols, e.g. email@em@il.com slip by this regex. Would welcome improvements by a regex ninja.
Matches
email@email.com | email@email.cn | e_m81l&em%'l@eMail.MUSEUM | email@em@il.com
Non-Matches
email@com | email@email.con | email@email.museet | email@192.0.0.1
Author Rating: Not yet rated. Brent Thomas
Source http://www.regular-expressions.info/email.html | http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: http://www.tobuywowgold.com/Product/Gold
Name: <a href=" http://www.tobuywowgold.com/Product/Gold">Honey</a>
Date: 10/9/2012 10:20:41 PM
Comment:
very good


Copyright © 2001-2014, RegexAdvice.com | ASP.NET Tutorials