|
David, I use this function:
function validateEmail(email)
{
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\ ".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA -Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
return email.match(re)
}
Takes the email address and returns true or false.
|
|
Expert:
|
jgivoni
|
|
Date:
|
Sep 16, 2006
|
|
Time:
|
17:58
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
Thanks, Jakob.
Funny enough I found the exact same one when I was searching on google.
But you'll get the points anyway :)
|
|
Expert:
|
david
|
|
Date:
|
Sep 16, 2006
|
|
Time:
|
18:03
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|