Angular Email Validation Per RFC 5322 Specs : I have a form which I need to do email validation on before submission. 

I've come across `ng-pattern="email.text"` which passes `bob@bob`. This lead me to several googles, which I found several suggestions with bad examples, such as http://stackoverflow.com/questions/24490668/how-to-validate-email-id-in-angularjs-using-ng-pattern as well as http://stackoverflow.com/questions/23671934/form-validation-email-validation-not-working-as-expected-in-angularjs . The examples shown don't handle all email addresses.

What I'm looking for is a legit email validation that I can use. Reading http://www.regular-expressions.info/email.html it references `RFC 5322` with regular expression: 

    \A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*
      |  "(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]
          |  \\[\x01-\x09\x0b\x0c\x0e-\x7f])*")
    @ (?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
      |  \[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}
           (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:
              (?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]
              |  \\[\x01-\x09\x0b\x0c\x0e-\x7f])+)
         \])\z

I'm not sure if the above is in the same governing regex standard that javascript uses, as I have not been able to get it to work. 

Is there a way to get the above into `ng-pattern` like form, that can be used like `ng-pattern="<regex goes here>"` in the form?

