Email validation in Actionscript 3


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public static const EMAIL_REGEX : RegExp = /^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
  2.  
  3. // another one. (better)
  4. var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.