Validate email with regexp





7
Date Submitted Fri. Jul. 21st, 2006 5:48 PM
Revision 1 of 1
Beginner atujpay
Tags Validate
Comments 2 comments
So... this is a simple and great way for validate email address using regular expressions. happy programming!


        Function IsEmail(email_to_eval)
          dim isValidE
          dim regEx
          
          isValidE      = True
          set regEx = New RegExp
          
          regEx.IgnoreCase = False
          
          regEx.Pattern = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
          isValidE                = regEx.Test(email_to_eval)
          
          IsEmail = isValidE
        End Function

 

yurk ca

Comments

Comments With the help of PHP
Thu. Jul. 27th, 2006 5:25 AM    Helper rastersize
Comments Perfect script here
Thu. Jul. 27th, 2006 7:46 AM    Helper rastersize

Voting