Posted By


dbugger on 03/29/11

Tagged


Statistics


Viewed 689 times
Favorited by 1 user(s)

Email validation


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function is_email(email) {
  2. var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  3. return reg.test(email);
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.