Validating e-mail with regular expression VB.Net

后端 未结 6 1760
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 16:13

I\'m working on a small project in VB.Net where I get a input from a textbox, and need to verify that this is an e-email address.

I found this expression \"^[_a-z0-9

6条回答
  •  感动是毒
    2020-12-05 16:29

    That regex isn't really complete... in fact... most aren't (check out this article, or this one).

    Unless you really enjoy pain, regex isn't the right way to validate an email address.

提交回复
热议问题