Return to Snippet

Revision: 16825
at August 17, 2009 11:58 by NyX


Initial Code
function isEmail(add) {
  if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(add)) {
     return true;
  }else{
     return false;
  }
}

Initial URL

                                

Initial Description
Checks if value is an e-mail.

Initial Title
Valid e-mail adress

Initial Tags
email

Initial Language
JavaScript