I find that jQuery validation plugin regex to be insufficient for my requirement. It accepts any email address xxx@hotmail.x as a valid email address whereas I want to be ab
// Add Custom Email Validation jQuery.validator.addMethod('customemail', function (emailaddr, element) { emailaddr = emailaddr.replace(/\s+/g, ''); return this.optional(element) || emailaddr.match(/^\b[A-Z0-9._%-]+@@[A-Z0-9.-]+\.[A-Z]{2,4}\b$/i); });