I have a javascript email validator that checks for the syntax of the email address. I need to modify it becuase it is not accepting emails with periods in the address that come after the @.

this gets rejected for example:


here is what I'm using to validate:

var emailPat = /^([a-z0-9])(([\-.]|[_]+)?([a-z0-9]+))*(@)([a-z0-9])((([-]+)?([a-z0-9]+))?)*((.[a-z]{2,3})?(.[a-z]{2,6}))$/i;
how can I modify this to accept addresses with the above format?