Posted By

chrisaiv on 03/12/08


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

blackabee
outbox
THEPWN3R
mprabhuram


Flash E-mail This Validator


 / Published in: ActionScript 3
 

  1. function is_valid_email(email:String):Boolean
  2. {
  3. var emailRgx:RegExp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  4. ///^[a-zA-Z0-9][-._a-zA-Z0-9]*@([a-zA-Z0-9]*\.)+[a-zA-Z]{2,6}$/;
  5. trace(emailRgx.test(email));
  6. return emailRgx.test(email);
  7. }
  8. is_valid_email("[email protected]");

Report this snippet  

You need to login to post a comment.