Skip to content

isValidEmail()

Returns if the email value is valid or not


// -------------------------
// -- IS VALID EMAIL
// -------------------------
function isValidEmail(email:String):Boolean
{
 var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
 return emailExpression.test(email);
}

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*