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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(?<email>(?![ ])(\w|[.])*@(\w|[.])*)
Description
E-mail addresses matcher
Matches
mpgrewal@rediffmail.com
Non-Matches
arnoldschwarz
Author Rating: The rating for this expression. Manpreet Grewal
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: Fails to match the valid email address
Name: The Fred and Barney Comedy Team <fred&barney@stonehenge.com>
Date: 1/26/2005 3:39:52 AM
Comment:
Fails to match the valid email address fred&barney@stonehenge.com


Title: No good
Name: Iain
Date: 12/2/2003 6:36:31 PM
Comment:
This doesn't match "foo-bar@example.com" or "foo+bar@example.com" Also, (\w|[.])* is better written as [\w.]* Also, it *does* match "@" The <a href="http://dellah.org/perl/faq/?term=valid+mail+address">entry on validating email addresses in the Perl FAQ</a> should be enlightening.


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