I found the following regular expression to validate email address in javascript:
/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
That works very well. I would like to add, in this same expression, the minimum and maximum character limitations:
/^.{3,100}$/
One less elegant solution is to do 2 checks (which is what I'm doing today). Is it possible to leave everything in a single expression?