/ Published in: JavaScript
Expand |
Embed | Plain Text
function is_email(email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; return reg.test(email); }
You need to login to post a comment.
dbugger on 03/29/11
3 people have marked this snippet as a favorite
function is_email(email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; return reg.test(email); }
You need to login to post a comment.