I am trying to use the Like operator to make sure that a String matches against a Pattern. I know that it is easier to use regex (Regular Expression), but let’s just say that I have to use the “like” operator. How should I go about it? Any help would be much appreciated.
The password textbox should at least contain one character, one number and one of these symbols #%&*.
let’s keep it simple and BTW this is how far I’ve managed to come with the email pattern.
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
If TextBox2.Text Like "*[@]*?.[a-z]*" Then
MsgBox("OK")
Else
MsgBox("NO GOOD")
End If
End Sub