Posted By

damarev on 05/03/07


Tagged


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

luman
tmarkiewicz
vali29
gAmUssA
guo3823538


valid email address


 / Published in: JavaScript
 

  1. function isValidEmail(str){
  2. var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
  3. return (filter.test(str));
  4. }

Report this snippet  

You need to login to post a comment.