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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Powerful email address validator with support for multiple subdomains and IP Addresses. (RFC 5322-5321)
Expression
^([\!#\$%&'\*\+/\=?\^`\{\|\}~a-zA-Z0-9_-]+[\.]?)+[\!#\$%&'\*\+/\=?\^`\{\|\}~a-zA-Z0-9_-]+@{1}((([0-9A-Za-z_-]+)([\.]{1}[0-9A-Za-z_-]+)*\.{1}([A-Za-z]){1,6})|(([0-9]{1,3}[\.]{1}){3}([0-9]{1,3}){1}))$
Description
The following is a powerful regular expression for e-mail address's validation. It was wrote respecting the e-mail addresses' syntax reported in the RFCs and supports both hostnames with multiple sub domains and IP addresses.
Matches
Non-Matches
Author Rating: The rating for this expression. Salvatore Fresta
Source http://tools.salvatorefresta.net/regex_email.txt
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: Modified
Name: Gopal
Date: 5/28/2012 3:20:54 AM
Comment:
^([\!#\$%&'\*\+/\=?\^`\{\|\}~a-zA-Z0-9_-]+[\.]?)*[\!#\$%&'\*\+/\=?\^`\{\|\}~a-zA-Z0-9_-]+@{1}((([0-9A-Za-z_-]+)([\.]{1}[0-9A-Za-z_-]+)*\.{1}([A-Za-z]){1,6})|(([0-9]{1,3}[\.]{1}){3}([0-9]{1,3}){1}))$ above modified one allows [email protected]


Title: Single Character Email
Name: Raj
Date: 3/6/2012 5:46:03 AM
Comment:
Its not allowing [email protected]


Title: Single Character Email
Name: Raj
Date: 3/6/2012 5:18:58 AM
Comment:
Its not allowing [email protected]


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