javascript - Angular JS with ng-pattern-restrict email Validation -


i using ng-pattern-restrict prevent people entering invalid emails according valid email addresses @ https://en.wikipedia.org/wiki/email_address here have far:

^([\w!#$%&'*/~|`}{^+-]+(.|@)?)*$ 

this prevent .@ occurring next 1 another. prevents @. appearing @ beginning. notice not care if expression blank required tag in input field not allow submission unless form filled out. can not figure out after @ in expression should prevented used again. ideas?