Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ASP 3.0 : Different form of Email Validation Signup · Login
Author Thread
Different form of Email Validation
Posted in tutorial: Server Side Email Addresses Validation using VBScript
·  mky
User
Joined: 26 Jun 2003
Total Posts: 1

Different form of Email Validation

Posted: 26 Jun 2003
Why wouldn't you just use RegExp? This would have saved you a massive amount of time.
You could have done something like the following

Function validateEmail(email) {
Dim regEx, regVal
Set regEx = New RegExp
regEx.Pattern = "/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/"
regVal = regEx.Test(email)
If RegVal Then
'It is an email address
Else
'It is not an email address
End If
End Function
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
1 Visitor

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.