Answers

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.

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