We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

arcturus on 08/15/06


Tagged

email javascript


Versions (?)


Who likes this?

29 people have marked this snippet as a favorite

jonhenshaw
luman
Navegante
meth
postNuKe
alexsancho
panatlantica
kgosser
kompo
maese
pokpok
Hirmine
chrisaiv
gbvb
vali29
hudge
jfherring
gilbitron
visuallyspun
SpinZ
xsubodh
vbert
cidibee
mrjthethird
gAmUssA
palako
unendin
oriolfb
hans


Email javascript validation


Published in: JavaScript 


Simple javascript email validation

  1. function checkMail(email){
  2. var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  3. if (filter.test(email)) {
  4. return true;
  5. }
  6. return false;
  7. }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: palako on May 23, 2008

You need to login to post a comment.