- Home
·
- String Manipulation
·
- A VERY concise and powerful Email Validator: only 5 lines of code. uses regular expressions (very P
A VERY concise and powerful Email Validator: only 5 lines of code. uses regular expressions (very P
A VERY concise and powerful Email Validator: only 5 lines of code. uses regular expressions (very Powerful also...) ?Enjoy?
API Declarations
Example:
ValidateAddresss("[email protected]")
thats it...
I suppose you could declare it as a global/public function if you wish
this would match:
[email protected]
[email protected]
[email protected]
[email protected]
would NOT match
look at [email protected]
[email protected]
Rate A VERY concise and powerful Email Validator: only 5 lines of code. uses regular expressions (very P
(2(2 Vote))
Dim re
Set re = new RegExp
re.pattern = "^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"
ValidateAddress = re.Test(Addy)
set re = nothing
End Function
A VERY concise and powerful Email Validator: only 5 lines of code. uses regular expressions (very P Comments
No comments yet — be the first to post one!
Post a Comment