Regex Email validation

后端 未结 30 1458
北海茫月
北海茫月 2020-11-22 12:16

I use this

@\"^([\\w\\.\\-]+)@([\\w\\-]+)((\\.(\\w){2,3})+)$\"

regexp to validate the email

([\\w\\.\\-]+) - this is f

30条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 12:35

    new System.ComponentModel.DataAnnotations.EmailAddressAttribute().IsValid(input)
    

提交回复
热议问题