AS3 Email Validator using regexp
Quick and dirty way to validate email addresses:
http://www.stimuli.com.br/trane/2007/sep/13/email-validation-actionscript-3/
Here’s my short version:
public function isValidEmail(pEmail : String) : Boolean
{
var emailRegexp : RegExp = /^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
return Boolean(pEmail.match(emailRegexp));
Â
}