/ Published in: Regular Expression
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function is_valid_email (email) { return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email); }