This is a regular expression I found online that seems to do a great job at simple email address validation. The problem is it doesn't allow + in the email, like my+email@domain.com
. I'm not great at regex, so how can I add support for a + without breaking the whole thing?
var regex = new RegExp( /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i );