One line Email validation using JavaScript regex
Validate if the string passed in a valid email or not
returns true or false
var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
returnval=emailfilter.test(<Email address to be tested >);