WEIRDCALCULATOR
⠺⠑⠊⠗⠙⠉⠁⠇⠉⠥⠇⠁⠞⠕⠗
Wednesday, October 28, 2009
AS3 simple email validation check
function checkMail(pmail:String) {
if (! (pmail.lastIndexOf(".") <= pmail.indexOf("@") || pmail.indexOf("@")==-1)) {
return true;
} else {
return false;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment