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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find RegEx for email validation
Expression
/^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Description
This expresssion will validate all possible formats except if web site URL contains hyphen characters like [email protected] I will include this feature also in next version.
Matches
Non-Matches
Author Rating: The rating for this expression. Rafiq
Source Email
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: aaaaaaaaaaaaaaaaaaaaaaaa!
Name: aaaaaaaaaaaaaaaaaaaaaaaa!
Date: 8/31/2020 9:07:03 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaa!


Title: test2
Name: vikas
Date: 8/30/2020 2:10:47 PM
Comment:
(([\-.]|[_]+)?([a-zA-Z0-9]+))*


Title: test1
Name: vikas
Date: 8/30/2020 2:09:08 PM
Comment:
^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$


Title: test
Name: test
Date: 5/28/2020 1:58:13 PM
Comment:
[email protected]a.aaaaaaaaaaaaaaaa


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 5/19/2020 5:11:50 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 5/19/2020 5:11:21 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb


Title: req
Name: raw
Date: 5/11/2020 5:21:25 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaa!


Title: badhentailover
Name: aaaaaaaaaaaaaaaaaaahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 1/30/2020 9:38:31 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: ^(([a-z])+.)+[A-Z]([a-z])+$
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Date: 1/13/2020 4:10:49 PM
Comment:
asas


Title: dsfs
Name: sdfsfdsf
Date: 11/4/2019 2:11:28 PM
Comment:
sdfsdfsfasdf asdf asdf asdf


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 10/10/2019 9:40:59 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 10/10/2019 9:40:47 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: hello hi
Name: name here
Date: 9/12/2019 11:38:01 PM
Comment:
^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$


Title: angelo
Name: angelo
Date: 9/3/2019 8:31:28 AM
Comment:
/^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/


Title: test
Name: rest
Date: 8/29/2019 11:00:34 AM
Comment:
best


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Date: 8/8/2019 11:50:38 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 8/8/2019 11:49:50 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: /^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Name: /^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Date: 7/10/2019 10:33:14 AM
Comment:
/^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 7/1/2019 6:27:26 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: This regex is evil
Name: Concerned citizen
Date: 9/15/2017 8:35:16 AM
Comment:
This regex will add a vulnerability to you program. Please check this page, it explicitly gives this regex as a bad example for a ReDoS: https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS


Title: This regex is evil
Name: Concerned citizen
Date: 9/15/2017 8:35:07 AM
Comment:
This regex will add a vulnerability to you program. Please check this page, it explicitly gives this regex as a bad example for a ReDoS: https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS


Title: /^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Name: 12
Date: 6/15/2017 10:44:27 AM
Comment:
22


Title: Don't use this regular expression
Name: Roland Illig
Date: 9/5/2016 10:31:46 AM
Comment:
This regular expression is featured in the "Bad Examples" section of the OWASP guide on "Regular expression Denial of Service - ReDoS". Don't use it, unless you want your server to be taken down by a Denial of Service attack.


Title: Don't use this regular expression
Name: Roland Illig
Date: 9/5/2016 10:31:28 AM
Comment:
This regular expression is featured in the "Bad Examples" section of the OWASP guide on "Regular expression Denial of Service - ReDoS". Don't use it, unless you want your server to be taken down by a Denial of Service attack.


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 7/26/2016 2:12:32 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: aaaaaaaaaaaaaaaaaaaaaaaa!
Name: aaaaaaaaaaaaaaaaaaaaaaaa!
Date: 3/15/2016 7:59:46 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaa!


Title: mds
Name: mldsqdl
Date: 12/28/2015 11:25:07 AM
Comment:
mds


Title: ^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Date: 2/27/2013 9:40:42 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!


Title: ^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Date: 2/27/2013 9:39:02 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!


Title: test
Name: fred
Date: 2/24/2013 10:23:12 AM
Comment:
test


Title: aaaaa[...]aaaaaa
Name: aaaaa[...]aaaaaa
Date: 4/20/2011 12:54:23 PM
Comment:
https://secure.wikimedia.org/wikipedia/en/wiki/ReDoS http://www.reddit.com/r/programming/comments/gua22/regex_denial_of_service_redos/


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Date: 4/20/2011 9:50:30 AM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa¡
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 1/19/2011 12:29:39 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa¡


Title: caca
Name: caca
Date: 1/9/2011 7:50:47 PM
Comment:
if my e-mail it's [email protected] ? at least in argentina we have domains.info among others


Title: aaaaaaaaaaaaaaaaaaaaaaaa!
Name: aaaaaaaaaaaaaaaaaaaaaaaa!
Date: 12/30/2010 3:39:40 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaa!


Title: [email protected]
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 12/11/2010 8:08:06 AM
Comment:
Again, DO NOT WRITE EMAIL VALIDATORS until you know what "RFC822" means. Apparently, you don't. So you're polluting the net with broken regex. PLEASE STOP.


Title: [email protected]
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 12/11/2010 7:44:18 AM
Comment:
Again, DO NOT WRITE EMAIL VALIDATORS until you know what "RFC822" means. Apparently, you don't. So you're polluting the net with broken regex. PLEASE STOP.


Title: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Date: 10/19/2010 5:04:59 PM
Comment:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 4/27/2007 7:00:25 PM
Comment:
Again, DO NOT WRITE EMAIL VALIDATORS until you know what "RFC822" means. Apparently, you don't. So you're polluting the net with broken regex. PLEASE STOP.


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