/ Published in: JavaScript
Expand |
Embed | Plain Text
function validateEmail(email){ var ptrn = /^[\w](([_\.-]?[\w]+)*)@([\w]+)(([\.-]?[\w]+)*)\.([A-Za-z]{2,})$/; return ptrn.test(email); }
You need to login to post a comment.
function validateEmail(email){ var ptrn = /^[\w](([_\.-]?[\w]+)*)@([\w]+)(([\.-]?[\w]+)*)\.([A-Za-z]{2,})$/; return ptrn.test(email); }
You need to login to post a comment.