Here is my javascript code
$scope.isValidEmailAddress = function(emailAddress) {
// var pattern = new RegExp(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/);
var pattern = new RegExp(/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/);
return pattern.test(emailAddress);
};
When i validate below email it will return true but this is not, I need to validate this type of email
rohan@yahoo.co.in.in
It should be invalid email