IsEmail

<Extension()> _
Public Function IsEmail(ByVal value As String) As Boolean
    Dim reg As Regex = New Regex("^\d{3}-\d{2}-\d{4}$")
    Return reg.IsMatch(value)
End Function
Example:
Texbox1.Text.IsEmail

Description

Check string for valid Email address

Details

Double click on the code to select all.

 

;