/ Published in: JavaScript
Expand |
Embed | Plain Text
function is_valid_email (email) { return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email); }
Comments
Subscribe to comments
You need to login to post a comment.

This snippet was causing firefox to freeze on longer email addresses.
This snippet was causing firefox to freeze on longer email addresses.
hm, interesting. How long was the email address?
It works great for me, thank you.