Angular JS with ng-pattern-restrict email Validation
<p>I am using ng-pattern-restrict to prevent people from entering invalid emails 
according to valid email addresses at <a href="https://en.wikipedia.org/wiki/Email_address" rel="nofollow">https://en.wikipedia.org/wiki/Email_address</a>
Here is what I have so far:</p>

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

<p>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?</p>