ASP.NET email validator regex

前端 未结 6 1138
走了就别回头了
走了就别回头了 2020-12-02 22:24

Does anyone know what the regex used by the email validator in ASP.NET is?

6条回答
  •  盖世英雄少女心
    2020-12-02 23:13

    I don't validate email address format anymore (Ok I check to make sure there is an at sign and a period after that). The reason for this is what says the correctly formatted address is even their email? You should be sending them an email and asking them to click a link or verify a code. This is the only real way to validate an email address is valid and that a person is actually able to recieve email.

提交回复
热议问题