Answers
![jgivoni](https://data3.answerbase.com/answerbase/1720/UserFiles/User27921/profileImage27921.jpg?632830506540000000)
Sep 16, 2006 - 02:58 PM
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.
![david](https://data3.answerbase.com/answerbase/1720/UserFiles/User27911/profileImage27911.jpg?632781224330000000)
Sep 16, 2006 - 03:03 PM
Funny enough I found the exact same one when I was searching on google.
But you'll get the points anyway :)
Add New Comment![Sending...](https://quomon.com/images/loading-boxes.gif)