Dim pattern As String
' I hope pattern is proper
pattern = "\w+([-+.]\w)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
If Regex.IsMatch("mail_here", pattern) = True Then
MsgBox("Valid mail address!")
Else
MsgBox("Invalid mail address!")
End If
'-----End-------
Hope this helps,
Onur Güzel
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.