Check Email Validation using JavaScript in php

function validateEmail(email) {

var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;

return emailReg.test(email);
}

Leave a Reply

Your email address will not be published. Required fields are marked *