Return to Snippet

Revision: 23305
at February 3, 2010 14:09 by Ether


Updated Code
public static const EMAIL_REGEX : RegExp = /^[A-Z0-9._%+-][email protected](?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;

// another one. (better)
var emailExpression:RegExp = /^[a-z][\w.-][email protected]\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;

Revision: 23304
at February 3, 2010 14:06 by Ether


Initial Code
public static const EMAIL_REGEX : RegExp = /^[A-Z0-9._%+-][email protected](?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;

Initial URL
http://www.stimuli.com.br/trane/2007/sep/13/email-validation-actionscript-3/

Initial Description


Initial Title
Email validation in Actionscript 3

Initial Tags
email, actionscript, regexp, validation

Initial Language
ActionScript 3