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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email
Expression
^[-\w'+*$^&%=~!?{}#|/`]{1}([-\w'+*$^&%=~!?{}#|`.]?[-\w'+*$^&%=~!?{}#|`]{1}){0,31}[-\w'+*$^&%=~!?{}#|`]?@(([a-zA-Z0-9]{1}([-a-zA-Z0-9]?[a-zA-Z0-9]{1}){0,31})\.{1})+([a-zA-Z]{2}|[a-zA-Z]{3}|[a-zA-Z]{4}|[a-zA-Z]{6}){1}$
Description
For Email Inputs checks to RFC 5322 Standards (no IP address though Didn't Want them) localhost: cannot start or end with . cannot have .. in it Domain: cannot start with - or . Known problems: [email protected] domains can be longer then 255. But each Domain can only be 63 then a . is required
Matches
Non-Matches
[email protected] @missingLocal.org missingatSign.net missingDot@com two@@signs.com [email protected] [email protected] [email protected] [email protected] [email protected]
Author Rating: The rating for this expression. Philip
Source
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: Forward slash in the local-part
Name: Adam Mackler
Date: 10/20/2012 5:24:56 AM
Comment:
According to this regular expression, a forward slash can appear in the local part only as the first character. But section 3.2.3 of RFC 5322 seems to say that a forward slash can appear anywhere in the local part. http://tools.ietf.org/html/#section-2.2.3


Title: Cause match to run forever
Name: Dude
Date: 7/9/2009 10:38:12 AM
Comment:
When entering an invalid email in which its length is very long the process runs forever.


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