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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Block common public domains & validate email
Expression
\w+([-+.]\w+)*@(?!(hotmail|gmail|yahoo|msn|excite|lycos|aol|live)\.com$)\w+([-.]\w+)*\.\w+([-.]\w+)*
Description
Should you need to validate that an email address is correctly formmatted and need to block hotmail and gmail, this expression will do it for you. Thanks to Sergei Z from regexadvice.com
Matches
Non-Matches
Author Rating: Not yet rated. Dan Brewerton
Source http://regexadvice.com/forums/47737/ShowThread.aspx
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: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 10/29/2008 11:08:44 AM
Comment:
Why are you ignoring the standards for email addresses?


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