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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(?:(?:[^@,"\[\]\x5c\x00-\x20\x7f-\xff\.]|\x5c(?=[@,"\[\]\x5c\x00-\x20\x7f-\xff]))(?:[^@,"\[\]\x5c\x00-\x20\x7f-\xff\.]|(?<=\x5c)[@,"\[\]\x5c\x00-\x20\x7f-\xff]|\x5c(?=[@,"\[\]\x5c\x00-\x20\x7f-\xff])|\.(?=[^\.])){1,62}(?:[^@,"\[\]\x5c\x00-\x20\x7f-\xff\.]|(?<=\x5c)[@,"\[\]\x5c\x00-\x20\x7f-\xff])|"(?:[^"]|(?<=\x5c)"){1,62}")@(?:(?:[a-z0-9][a-z0-9-]{1,61}[a-z0-9]\.?)+\.[a-z]{2,6}|\[(?:[0-1]?\d?\d|2[0-4]\d|25[0-5])(?:\.(?:[0-1]?\d?\d|2[0-4]\d|25[0-5])){3}\])$
Description
just another email validation perl regexp. I tryed to follow as much as possible the RFC 3696 don't hesitate to report.
Matches
!def!xyz'[email protected] | Fred\ [email protected] | "test"@tsse.com
Non-Matches
[email protected] | [email protected] | .test@ex-am_ple.com
Author Rating: Not yet rated. jonathan gotti
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: Domain Issues
Name: Jake
Date: 6/28/2011 6:21:05 AM
Comment:
Does not allow .co.uk domain but does allow .gov.uk


Title: Domain problems
Name: Edgar
Date: 2/23/2010 4:28:18 AM
Comment:
[email protected] does not work, although domain does exist


Title: Some mismatches
Name: AltGreu
Date: 10/16/2008 3:29:17 PM
Comment:
According to RFC 3696 : user@local-domain should match [email protected] should match "user\"@domain.com should not match


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