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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Email
Expression
^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$
Description
regex to validate email address noteworthy: (1) It allows usernames with 1 or 2 alphanum characters, or 3+ chars can have -._ in the middle. username may NOT start/end with -._ or any other non alphanumeric character. (2) It allows heirarchical domain names (e.g. [email protected]). Similar -._ placement rules there. (3) It allows 2-9 character alphabetic-only TLDs (that oughta cover museum and adnauseum :>). (4) No IP email addresses though -- I wouldn't Want to accept that kind of address.
Matches
Non-Matches
Author Rating: The rating for this expression. Rob Eberhardt
Source loosely based on http://regexlib.com/REDetails.aspx?regexp_id=356
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: Cortexi Reviews | Cortexi Drops | Cortexi Tinnitus | Cortexi Hearing Support
Name: Cortexi Hearing Support
Date: 6/3/2023 8:36:30 AM
Comment:
Cortexi Reviews:Before taking /with other dietary supplements or drugs, as with any dietary supplement, it's crucial to speak with your doctor. It is always important to consult with your healthcare professional before combining different items because some supplements and drugs may interact with one another and result in unfavorable side effects.


Title: https://www.facebook.com/ReeDrummondACVKetoGummies
Name: /ReeDrummondACVKetoGummies
Date: 7/12/2022 7:25:42 AM
Comment:
Ree Drummond keto Gummies https://supplement24hours.com/f1-keto-gummies/ https://www.facebook.com/F1ACVKetoGummies/ https://www.facebook.com/F1KetoGummies/ https://www.facebook.com/ReeDrummondACVKetoGummies https://www.facebook.com/KetoPrimeGummies/ https://www.facebook.com/SimpliHealthACVKeto/ https://www.facebook.com/SimplyHealthACVKetoReviews/ https://www.facebook.com/SimplyHealthKetoGummies/ https://www.facebook.com/ketoblastgummycanada/ https://www.facebook.com/KetoBlastGummies/ https://www.facebook.com/KetoBlastGummyBears/ https://www.facebook.com/WonderCBDOil/ https://www.facebook.com/WonderCBDOil10mg/ https://f1-keto-acv-gummies-us.jimdosite.com/ https://groups.google.com/g/f1-keto-acv-gummies-buy/c/tPULkFOXS30 https://sites.google.com/view/f1-keto-acv-gummies-offer/home https://ree-drummond-keto-gummies-offer.jimdosite.com/ https://ree-drummond-keto-gummies-shop.jimdosite.com/ https://sites.google.com/view/ree-drummond-acv-keto-gummies/home https://www.facebook.com/f1ketogummies/ https://www.outlookindia.com/business-spotlight/via-keto-apple-gummies-uk-canada-holland-barrett-viaketo-apple-gummies-scam-or-real-where-to-buy--news-202043 https://www.outlookindia.com/outlook-spotlight/via-keto-reviews-australia-exposed-via-keto-capsules-france-avis-michel-cymes-must-read-review--news-206624 https://www.outlookindia.com/outlook-spotlight/via-keto-gummies-australia-reviews-chemist-warehouse-via-keto-apple-gummies-australia-is-it-scam-or-legitimate--news-205185


Title: How do Tucker Carlson CBD Gummies ReviewsWork?
Name: Tucker Carlson CBD Gummies Reviews
Date: 6/29/2022 12:06:40 PM
Comment:
The perfect thing is that users need to take the Tucker Carlson CBD Gummies product with its better power and prescription. So, you can take the CBD formula easily. Therefore, you can take it with its small tinctures form and can make effective health. The best way is to take the product in its small tinctures form and add two to three drops to the food. Moreover, you can follow all prescriptions and make the Tucker Carlson CBD Gummies effective for health. Overall, you need to follow all medications and make them safe for use with all good benefits. Tucker Carlson CBD Gummies Reviews OFFICIAL WEB:->https://kitcoben.com/tucker-carlson-cbd-gummies/ https://the-dots.com/projects/tucker-carlson-cbd-gummies-reviews-best-gummies-or-scam-exposed-for-2022-789501 https://the-dots.com/projects/tucker-carlson-cbd-gummies-reviews-2022-effective-for-health-or-scam-789507 https://www.facebook.com/Tucker-Carlson-CBD-Gummies-246693017244976/ https://luatedies.clubeo.com/page/tucker-carlson-cbd-gummies-reviews-2022-update-does-it-work-critical-details.html https://hlights.clubeo.com/page/tucker-carlson-cbd-gummies-reviews-work-or-hoax-read-this-price-offer.html https://groups.google.com/u/1/g/tucker-carlson-cbd-gummies-reviews-/c/QLmkwKNPoB8 https://groups.google.com/u/1/g/tucker-carlson-cbd-gummies-reviews-/c/Sgxb_BwzpXw https://techplanet.today/post/tucker-carlson-cbd-gummies-reviews-update-2022-ingredients-scam-alert-read-side-effects https://www.facebook.com/ReeDrummondCBDGummyReviews/ https://www.facebook.com/ReeDrummondCBDGummiesBuy/ https://ree-drummond-cbd-gummy.jimdosite.com/ https://ree-drummond-cbd-gummies-reviews-4.jimdosite.com/ https://ree-drummond-cbd-gummy-reviews.jimdosite.com/ https://carolybarra.clubeo.com/page/ree-drummond-cbd-gummies-reviews-shocking-scam-2022-do-not-buy-must-check-this-report.html https://www.crunchbase.com/organization/ree-drummond-cbd-gummy https://twitter.com/ReeGummies https://omiskil.clubeo.com/page/ree-drummond-cbd-gum


Title: How to purchase Simpli Keto + ACV Gummies ?
Name: Simpli Keto + ACV Gummies- 'Top Reviews' Real Price?
Date: 6/28/2022 10:19:02 AM
Comment:
Is it protected to have it after pregnancy? Significantly individuals experience the ill effects of weight gain issues after pregnancy. All things considered, having a discussion with your primary care physician prior to beginning it out is prudent. For pregnant ladies, the plan might possibly work. It altogether relies upon their body reaction. In this manner, have a discussion with the specialist and afterward conclude regardless of whether you wish to give it a shot.Simpli Keto + ACV Gummies https://www.jpost.com/promocontent/simpli-keto-acv-gummies-reviews-is-it-fake-gummies-or-real-709547 https://www.facebook.com/ACVKetoGummiesPills/ https://twitter.com/ACVKetoGumy_ https://acv-keto-gummies-reviews-scam.tumblr.com/ https://acvketogummiesscam.mystrikingly.com/ https://acv-keto-gummie.livejournal.com/437.html https://acv-keto-gummies-reviews.company.site/ https://acvketogummiesusaprice.jimdosite.com/ https://www.pinterest.com/pin/804314814713688990 https://www.scoop.it/topic/acv-keto-gummies-by-allahkurban https://www.scoop.it/topic/acv-keto-gummies-review https://groups.google.com/g/acv-keto-gummies-scam-legit/ https://sites.google.com/view/acvketogummieslatestscam/home https://health-buzz-diet.blogspot.com/2022/06/ACVKetoGummies.html https://www.cos.youth4work.com/ACV-Keto-Gummies-Scam/jobs/173391-acv-keto-gummies-reviews-fda-approved-latest-scam-read-before-buy-in-Visakhapatnam https://techplanet.today/post/acv-keto-gummies-simpli-acv-gummies-360-all-information-read-here https://allahkurban.clubeo.com/page/acv-keto-gummies-simpli-acv-keto-gummies-latest-scam-real-reviews-read-before-buy.html https://iseyuks.clubeo.com/page/acv-keto-gummies-scam-or-trusted-uses-ingredients-side-effects.html https://witsrikdd.clubeo.com/page/acv-keto-gummies-review-scam-or-trusted-effective-or-not.html https://techplanet.today/post/acv-keto-gummies-side-impact-measurement-and-how-to-utilize-it https://techplanet.today/post/acv-keto-gummies-reviews-sha


Title: How Does Java Burn Effect The Body?
Name: Does Java Burn help with WEIGHT LOSS?
Date: 6/24/2022 11:33:38 AM
Comment:
One of the chief purposes behind Java Burn to find success is furthermore considering the way that it is proposed with coffee. Coffee is a common reward that people drink for its invigorating properties. However, it achieves more than that. Different prosperity focuses on ensure that it is a fat-disaster warm drink. Java Burn https://www.outlookindia.com/outlook-spotlight/java-burn-reviews-is-java-burn-coffee-scam-or-legit--news-203882


Title: Emails
Name: Allowing any number of alphaqnums
Date: 8/25/2019 5:53:33 AM
Comment:
How to get an email if it can have any number of alphanum characters before and after @


Title: Example
Name: ^[0-9A-Za-z\.\-_]*(?<!\.)$
Date: 10/31/2018 11:57:12 PM
Comment:
Please give sample text to satisfy the above regex.


Title: Hangs(unresponsive) for long expressions which ends with space.
Name: Vinayaka
Date: 10/1/2012 6:55:38 AM
Comment:
The regex hangs for long expressions which ends with space. EX: [email protected] (space at the end is necessary to make the regex unresponsive.)


Title: Hangs(unresponsive) for long expressions which ends with space.
Name: Vinayaka
Date: 10/1/2012 6:54:43 AM
Comment:
The regex hangs for long expressions which ends with space. EX: [email protected] (space at the end is necessary to make the regex unresponsive.)


Title: C# email validation
Name: Welbre
Date: 2/22/2012 12:28:01 PM
Comment:
You can validate email in c# like this pattern = "^([0-9a-zA-Z]([-\\.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$"; Regex.IsMatch("[email protected]", pattern) http://net-informations.com/csprj/communications/validate-email.htm well.


Title: C# email validation
Name: Welbre
Date: 2/22/2012 12:27:30 PM
Comment:
You can validate email in c# like this pattern = "^([0-9a-zA-Z]([-\\.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$"; Regex.IsMatch("[email protected]", pattern) http://net-informations.com/csprj/communications/validate-email.htm well.


Title: Vulnerable to Denial of Service attacks!
Name: Abe
Date: 10/26/2010 11:16:06 AM
Comment:
This regex is vulnerable to regular expression denial of service attacks. Take a look here: http://www.abemiester.com/abemiester/post/RegEx-DOS-attack-Regular-Expressions-Now-you-have-3-problems.aspx


Title: Following expression allows one letter, it seems...
Name: James Khouri
Date: 6/27/2010 2:20:13 PM
Comment:
Hey, forgive me if I'm doing something wrong. I don't appear to be. But please test this. The following expression seems to allow me to simply type the letter 's' (without quotes) and it submits: ^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$


Title: RetEx vulnerable for DoS Attacks
Name: Wesen
Date: 5/14/2010 2:34:39 PM
Comment:
if executed in NFA type of Regex engine can be used for DoS attacks. read the article from Bryan Sullivan (MSDN Magazine May 2010, page 82).


Title: Precarious nested quantifiers
Name: Niki H.
Date: 10/7/2009 10:55:49 AM
Comment:
All in all this regex would make a pretty decent job... if there weren't cases which will cause the Engine to hang. My computer is trying to validate the address 'gbounce-3561586842-3534-352365876-1254920235325@bounce.e.hotelplan.nl' for about 1.5 hours already, and no end is in sight. Read more about the problems with nested quantifiers here: http://blogs.msdn.com/tess/archive/2007/10/25/net-hang-case-study-high-cpu-because-of-poorly-formatted-regular-expressions-identifying-tight-loops.aspx Thanks for this regex but be careful with it in a production environment. ;-)


Title: Regex for multiple email id
Name: Harsh Bandlish
Date: 2/19/2009 1:32:27 AM
Comment:
([a-zA-Z0-9_\.!$&*\-=^`|~#%'+/?_{}]+@[a-zA-Z\.!$&*\-=^`|~#%'+/?_{}]+[\.]+[a-zA-Z]+){1}([;]+[\s]*([a-zA-Z0-9_\.!$&*\-=^`|~#%'+/?_{}]+@[a-zA-Z\.!$&*\-=^`|~#%'+/?_{}]+[\.]+[a-zA-Z]+))*


Title: Regex for multiple email id
Name: Harsh Bandlish
Date: 2/19/2009 1:31:50 AM
Comment:
([a-zA-Z0-9_\.!$&*\-=^`|~#%'+/?_{}]+@[a-zA-Z\.!$&*\-=^`|~#%'+/?_{}]+[\.]+[a-zA-Z]+){1}([;]+[\s]*([a-zA-Z0-9_\.!$&*\-=^`|~#%'+/?_{}]+@[a-zA-Z\.!$&*\-=^`|~#%'+/?_{}]+[\.]+[a-zA-Z]+))*


Title: email reg ex
Name: chetan
Date: 12/19/2006 5:05:58 AM
Comment:
It does not work when [email protected] and manager_ge 2yahoo.com is given.its buggy


Title: Last updates?
Name: Earl
Date: 10/25/2006 11:15:56 AM
Comment:
Has this regex been updated or used recently - and how well does it work? It seems pretty robust but just curious what people are seeing that are using it. Thanks.


Title: Corrected Version for not Missing single letter subsdomain recognition
Name: Peter Lee
Date: 4/18/2006 7:35:43 AM
Comment:
^([0-9a-zA-Z]\.|([0-9a-zA-Z][-\w]*[0-9a-zA-Z])\.)+[a-zA-Z]{2,9}$ is this right?


Title: Randall
Name: Rob Eberhardt
Date: 2/16/2005 1:05:18 PM
Comment:
Strange coincidence... For those of you wanting the regex behemoth necessary for RFC822, I just stumbled on this: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html (via http://www.codinghorror.com/blog/archives/000214.html) Enjoy all 6.2KB, Randall!


Title: Randall
Name: Rob Eberhardt
Date: 2/16/2005 12:48:42 PM
Comment:
I'd love to use an elegant regex that nails all 40 pages of the RFC. Hop to it Randall!


Title: No clue about valid email
Name: Randal L. Schwartz
Date: 2/16/2005 9:37:41 AM
Comment:
You say: (1) It allows usernames with 1 or 2 alphanum characters, or 3+ chars can have -._ in the middle. username may NOT start/end with -._ or any other non alphanumeric character. You really *don't* have a clue about valid email addresses do you? Ever read RFC822? I guess not.


Title: Fails to match valid email address
Name: The Fred and Barney Comedy Team <fred&[email protected]>
Date: 1/26/2005 2:57:46 AM
Comment:
Fails to match the valid email address fred&[email protected]


Title: Bug?
Name: Silvery Cat
Date: 1/12/2005 3:48:50 AM
Comment:
Validate as correct expression like "[email protected]" (two or more dots before "@"). Seems just weird to me.


Title: Read his description
Name: ceph
Date: 7/28/2004 12:27:45 PM
Comment:
Read his description, it doesn't accept IP-based emails. Nor should anyone... get a fricken domain.


Title: .
Name: HD
Date: 7/14/2004 3:07:05 AM
Comment:
Validation Fails when you type [email protected]


Title: Missing asterisk
Name: Gorka
Date: 7/12/2004 6:54:41 AM
Comment:
Nice regexp, but didn't you miss an asterisk in the domain part? ^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-z A-Z]*\.)+[a-zA-Z]{2,9})$ seems more like it for me.


Title: works for me
Name: Rob
Date: 7/2/2004 4:22:52 PM
Comment:
RegExpLib's regular expression tester says "There were 1 matches" for [email protected] with this regex. Perhaps your regex javascript is what's not working. Try it: http://www.regexlib.com/RETester.aspx?regexp_id=541


Title: in javascript
Name: crodri1
Date: 7/2/2004 3:45:08 PM
Comment:
I am attempting to use this regular expression in javascript and it is not working if the domain is longer than 5 characters. i.e. [email protected]


Title: In C#
Name: joe
Date: 7/1/2004 2:34:02 PM
Comment:
To correct the escape sequence problem try putting "@" just before the string open quote to tell the compiler that your string contains "un-escaped" characters. Like this... Regex r = new Regex(@"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA -Z]{2,9})$");


Title: Using it under c#
Name: email
Date: 4/22/2004 10:57:48 AM
Comment:
Hi, I´m a beginner with the regular expresions. And I would like to know, if anybody can help me, how i can test it under c# in visual studio .net 2003. I´ve tried this with no success: Regex r = new Regex("^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$"); Doing it i get an error at the moment of compiling because the escape secuence is not known. Thanks


Title: yeah
Name: Rob Eberhardt
Date: 2/25/2004 4:32:24 PM
Comment:
yeah, i guess so. it's supposed to prevent single letter domain names, and since it reuses the same for subdomains, they're caught too. I don't want to relax the domain restriction, so I see no simple solution short of rewriting the subdomain check separately...


Title: Missing single letter subdomain recognition
Name: Shaune Stark
Date: 2/25/2004 3:48:14 PM
Comment:
This RegEx fails to match an address like [email protected]!


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