Return to Snippet

Revision: 49468
at July 22, 2011 04:03 by zackattack27


Updated Code
function isValidEmail(email:String):Boolean
{
    var emailExpression:RegExp = /([a-z0-9._-]+?)@([a-z0-9.-]+).([a-z]{2,4})/i;
    return emailExpression.test(email);
}

Revision: 49467
at July 22, 2011 04:02 by zackattack27


Initial Code
function isValidEmail(email:String):Boolean
{
    var emailExpression:RegExp = /([a-z0-9._-]+?)@([a-z0-9.-]+).([a-z]{2,4})/i;
    return emailExpression.test(email);
}

Initial URL

                                

Initial Description

                                

Initial Title
EmailValidation

Initial Tags
email, textmate, validation

Initial Language
ActionScript 3