I am using ng-pattern-restrict to prevent people from entering invalid emails according to valid email addresses at https://en.wikipedia.org/wiki/Email_address Here is what I have so far:
^([\w!#$%&'*/~|`}{^+-]+(.|@)?)*$
This will prevent .@ from occurring next to one another. It also prevents from @. from appearing at the beginning. Notice I do not care if the expression is blank as required tag in my input field will not allow submission unless the form is filled out. What I can not figure out is after @ is in the expression it should be prevented from used again. Any ideas?