Validate Email Address by Regular Expression

Javascript to Verify Email Address.

function validateEmail(email)
{
return email.match(/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/);
}

Return True on Valid Email Address false otherwise.

Enter Email

This entry was posted in Javascript. Bookmark the permalink.