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