Posted By

Ether on 02/03/10


Tagged

email actionscript regexp validation as3


Versions (?)

Email validation in Actionscript 3


 / Published in: ActionScript 3
 

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

  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;

Report this snippet  

You need to login to post a comment.