Regex validation of email addresses according to RFC5321/RFC5322

后端 未结 2 1292
孤独总比滥情好
孤独总比滥情好 2020-12-05 03:33

Does anyone know a regex that validates email addresses according to RFC5321/RFC5322?

Since (nestable) comments make the grammar irregular, only addresses without co

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 03:45

    UPDATE:

    As Michael Stramel noted RFC822 is outdated, please see his comment.


    As far as I know RFC822 specifies email adress syntax.

    http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html

提交回复
热议问题