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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$
Description
Matches 99.99% of e-mail addresses (excludes IP e-mails, which are rarely used). The {2,7} at the end leaves space for top level domains as short as .ca but leaves room for new ones like .museum, etc. The ?: notation is a perl non-capturing notation, and can be removed safely for non-perl-compatible languages. See also email.
Matches
Non-Matches
Author Rating: The rating for this expression. J. Washam
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: martcastle.net
Name: nick
Date: 2/16/2019 2:45:16 PM
Comment:
MARTCASTLE.NET company entered the virtual world to provide trusted services to people like you who are suffering from multiple health issues. As a pharmacy, we strive to provide authentic and quality medicines to patients around the world, at a comparatively lower cost than many other online pharmacies. We are aware that'we' exist because of the 'you', and therefore customer satisfaction should always be our top priority. https://www.martcastle.net


Title: martcastle.net
Name: nick
Date: 2/16/2019 2:44:58 PM
Comment:
MARTCASTLE.NET company entered the virtual world to provide trusted services to people like you who are suffering from multiple health issues. As a pharmacy, we strive to provide authentic and quality medicines to patients around the world, at a comparatively lower cost than many other online pharmacies. We are aware that'we' exist because of the 'you', and therefore customer satisfaction should always be our top priority. https://www.martcastle.net


Title: yoga class
Name: DYLAN
Date: 4/6/2016 12:42:20 PM
Comment:
Read about Hatha Kundalini Nidra Yoga Courses Training Yoga Classes Online http://yatan-ayur.com.au/online-yatan-yoga-course Yoga Classes Courses Training Online that are suitable for beginners or students who have some experience of the basics of Yoga postures and breath awareness. Yatan offers a variety of Yoga Training Yoga Classes Courses Yoga Online http://yatan-ayur.com.au/product/yoga-classes-courses-training you can train just for your own personal development or begin a career that could be one of the most fulfilling things to meet your needs Yoga Classes Courses Yoga Training for all ages in Australia Sydney at an affordable price. Call us on 1300552260 for free consultation.


Title: Neti POT
Name: DYLAN
Date: 4/5/2016 1:05:35 PM
Comment:
Read about Neti Pot http://yatan-ayur.com.au/product/yatan-neti-pot Neti Pot naturally removes excess mucus, pollen, dust and other environmental irritants from the sinus passages clears all symptoms of sinus infection like nasal polyps & nasal congestion, sinus flush & sinus drainage. Shop online the whole Neti Pot Kit http://yatan-ayur.com.au/product/neti-pot-kit Neti Pot Kit includes Neti Pot, Ayurvedic Salt & Nasal Oil Drops available in our store at very discount price. Yatan provides the 100% pure stainless steel Neti Pot we do accept Visa, Master PayPal etc. payment and provide worldwide shipping.


Title: Pattern fail
Name: Robert Walker
Date: 3/17/2016 1:39:05 AM
Comment:
I am also facing such error patterns. I had complications that need to be set on my webplace regarding Generic Viagra http://www.genericapharmacy.net/


Title: Notation Error
Name: Zishan
Date: 6/24/2015 7:38:16 AM
Comment:
Yes it failed to match valid email address when tried to set up it for my site http://www.safeformens.com/viagra_generic.html


Title: Getting an error
Name: KareemShrewsbury
Date: 11/3/2014 1:00:56 AM
Comment:
hey even I am getting an error with ?: notation for Windows 7. Can you tell me how to remove this error.You can forward your query on http://www.pharmacyglobalrx.net/sildenafil-citrate.html


Title: Getting an error
Name: KareemShrewsbury
Date: 11/3/2014 12:54:47 AM
Comment:
hey even I am getting an error with ?: notation for Windows 7. Can you tell me how to remove this error.You can forward your query on http://www.pharmacyglobalrx.net/sildenafil-citrate.html


Title: Another regular expression
Name: Annie
Date: 7/3/2014 4:00:20 PM
Comment:
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@ (?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil| biz|info|mobi|name|aero|asia|jobs|museum)\b This regular expression works with "[email protected]", "fred&[email protected]", "[email protected]", "[email protected]" and failed for the email "[email protected]" link: http://www.regular-expressions.info/email.html


Title: Another regular expression
Name: Annie
Date: 7/3/2014 4:00:07 PM
Comment:
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@ (?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil| biz|info|mobi|name|aero|asia|jobs|museum)\b This regular expression works with "[email protected]", "fred&[email protected]", "[email protected]", "[email protected]" and failed for the email "[email protected]" link: http://www.regular-expressions.info/email.html


Title: Fails on one case
Name: Mike
Date: 11/7/2006 7:25:19 PM
Comment:
Gmail has an option where a user can enter a + in the email address (ie. [email protected] ). Its used to organize emails. This regex fails to match when this is used.


Title: Fails valid addresses with +
Name: Tim Lesher
Date: 5/22/2006 2:57:27 PM
Comment:
This fails for addresses that use plus-addressing, like Gmail addresses: [email protected]


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


Title: error with "-"
Name: jim
Date: 8/11/2004 10:33:43 PM
Comment:
[email protected] domain name with "-" will fail!!


Title: Matching error
Name: Josef
Date: 7/16/2004 4:17:34 PM
Comment:
If fails with: [email protected] 4you.com is a valid domain. Try it.


Title: Error
Name: Gavin Sharp
Date: 12/23/2003 4:11:52 AM
Comment:
[email protected] is validated erroneously. Domain names cannot begin with a symbol. Gavin Sharp


Title: Java Compatability
Name: Brian
Date: 5/22/2003 4:18:59 PM
Comment:
I ran into problems with the ?: notation in java for IE5.0 for Mac.


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