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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
Description
Easy expression that checks for valid email addresses.
Matches
Non-Matches
Author Rating: The rating for this expression. Zrekam makerZ
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: \ and . expects range
Name: Abel
Date: 9/3/2020 10:09:59 AM
Comment:
Hi, The \ and the . don't work together with the [] --> it expects a range and there is no range between \ and . --> ([a-zA-Z0-9._-]+)@([a-zA-Z0-9._-]+).([a-zA-Z]{2,5}))


Title: matches illegal addresses
Name: Moerak
Date: 2/18/2008 10:38:57 AM
Comment:
Matches for example: [email protected]


Title: matches [email protected] and [email protected]_.com
Name: rats.hyd.in
Date: 1/9/2008 1:35:21 AM
Comment:
little correction ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z]{2,5})$ now this regex wont match $2 for underscores and immediate dots after @


Title: Tingting bukan sepeda
Name: Tingting bukan permen
Date: 2/20/2005 11:52:33 PM
Comment:
Cupu banget deh ini website.... apaan sih maksudnya gua nggak ngerti nihhhhh


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


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