C# Email Regular Expression — Any out there that adhere to the RFC 2822 guidelines?

后端 未结 4 1676
一个人的身影
一个人的身影 2021-01-01 02:43

I realize that there are a ton of regex email validations, but I can\'t seem to find one that adheres to the RFC 2822 standard.

The ones I find keep letting in junk

4条回答
  •  独厮守ぢ
    2021-01-01 03:30

    This is for RFC822, not for the newer one. But it seems the address format has not been changed, so should be what you're looking for.

    (note the remark below the regexp--it still assumes that the address has been preprocessed)

提交回复
热议问题