Below is simple yet powerful email validation script using regular expression.
function validateEmail(myEamil) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myEmail.value)){
return (1)
}
return (0)
}
Juice of PHP, MySQL, Apache, Linux, Actionscript, Flex
Below is simple yet powerful email validation script using regular expression.
function validateEmail(myEamil) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myEmail.value)){
return (1)
}
return (0)
}
You must be logged in to post a comment.