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
somthing@someserver.com | firstname.lastname@mailserver.domain.com | username-something@some-server.
Non-Matches
username@someserver.domain.c | somename@server.domain-com | someone@something.se_eo
Author Rating: Not yet rated. 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: matches illegal addresses
Name: Moerak
Date: 2/18/2008 10:38:57 AM
Comment:
Matches for example: test@.test.com


Title: matches rats@.co.in and rats@yahoo_.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&barney@stonehenge.com>
Date: 1/26/2005 3:17:01 AM
Comment:
Fails to match the valid email address fred&barney@stonehenge.com


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