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
joe.tillis@unit.army.mil | jack_rabbit@slims.com | foo99@foo.co.uk
Non-Matches
find_the_mistake.@foo.org | .prefix.@some.net
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: Online Generic Levitra
Name: Lesa Thomas
Date: 7/18/2017 6:43:13 AM
Comment:
Generic Levitra is an oral medicine used to treat male impotence also referred to as erectile dysfunction (ED). See more about Generic Levitra, http://www.assertmeds.com/generic-levitra.html


Title: Online Generic Levitra
Name: Lesa Thomas
Date: 7/18/2017 6:41:57 AM
Comment:
Generic Levitra is an oral medicine used to treat male impotence also referred to as erectile dysfunction (ED). See more about Generic Levitra, http://www.assertmeds.com/generic-levitra.html


Title: Buy Sildenafil Citrate Online
Name: Andrew Farmer
Date: 2/13/2017 7:46:25 AM
Comment:
Sildenafil Citrate is best ever ED (impotence) reliever at affordable rates. For more visit : http://www.pharmacygenerickart.com/


Title: Buy Sildenafil Citrate Online
Name: Andrew Farmer
Date: 2/13/2017 7:46:14 AM
Comment:
Sildenafil Citrate is best ever ED (impotence) reliever at affordable rates. For more visit : http://www.pharmacygenerickart.com/


Title: Great Info
Name: Tisa Smith
Date: 1/19/2017 10:41:22 AM
Comment:
Great info I totally agree with you I like your post..I think you given a great job by sharing such a most important issue..thanks for sharing...http://www.sureviagra.com/kamagra-oral-jelly.html


Title: Kamagra
Name: Mark Jenns
Date: 9/10/2016 6:02:56 AM
Comment:
Kamagra is the best oral medication for ED problems in men which comes in cost effective price with high quality. Read more information about Kamagra http://www.pharmaglobalrx.com/kamagra.html


Title: caverta
Name: Kelly E. Wilber
Date: 8/20/2016 4:16:07 PM
Comment:
caverta online http://www.pharmaglobalrx.com/caverta.html Cavetra 100mg by Maiden Pharmaceuticals CAVERTA is a tablet used to treat erectile dysfunction (impotence) in men Cavetra, Cavetra 100mg , Caverta .


Title: caverta
Name: Kelly E. Wilber
Date: 8/20/2016 4:15:37 PM
Comment:
caverta online http://www.pharmaglobalrx.com/caverta.html Cavetra 100mg by Maiden Pharmaceuticals CAVERTA is a tablet used to treat erectile dysfunction (impotence) in men Cavetra, Cavetra 100mg , Caverta .


Title: viagra
Name: mike
Date: 6/19/2016 12:58:19 PM
Comment:
Yes it neglected to coordinate substantial email address when attempted to set up it for my site http://www.naturalproductsinfo.net/generic-viagra.html


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: Notation Error
Name: Florian Vog
Date: 3/31/2016 6:54:52 AM
Comment:
It is showing failed to match valid mail-id address when i tried to set up this for my webpage but all over couldn't get proper solution if someone has any any query and solution of concern then follow Viagra Generika http://www.kamagramart.org/viagra-generika


Title: Getting an error
Name: Lennox
Date: 3/31/2016 6:48:41 AM
Comment:
Hey guys also i am facing such problem like getting an error with ?: notation to windows 7, could everyone tell me that how remove this error i will be so grateful to you. Everybody can send your query and answers on Kamagra http://www.kamagramart.org/


Title: Pattern fail
Name: Fink Philip
Date: 3/31/2016 6:35:02 AM
Comment:
I am working on this type obstacles for last many time but we coul not get any appropriate result still now. I have some major problems regarding this concern which are so important to be sent on my webpage Kamagra http://www.kamagrahilfe.com/


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 "mygmailaccount+nospam@gmail.com", "fred&barney@stonehenge.com", "foo@t-online.de", "foo@4you.com" and failed for the email "gav@-.v.com" 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 "mygmailaccount+nospam@gmail.com", "fred&barney@stonehenge.com", "foo@t-online.de", "foo@4you.com" and failed for the email "gav@-.v.com" 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. mygmailaccount+nospam@gmail.com ). 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: foo+bar@baz.com


Title: Fails to match valid email address
Name: The Fred and Barney Comedy Team <fred&barney@stonehenge.com>
Date: 1/26/2005 3:32:53 AM
Comment:
Fails to match the valid email address fred&barney@stonehenge.com


Title: error with "-"
Name: jim
Date: 8/11/2004 10:33:43 PM
Comment:
foo@t-online.de domain name with "-" will fail!!


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


Title: Error
Name: Gavin Sharp
Date: 12/23/2003 4:11:52 AM
Comment:
gav@-.v.com 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-2017, RegexAdvice.com | ASP.NET Tutorials