I am trying to verify that a textbox contains nothing but A-Z, a-z and 0-9.
I tried
Code:
Dim RegExObj As New _
System.Text.RegularExpressions.Regex("^A-Za-z0-9")
MsgBox("Match: " & RegExObj.IsMatch(TxtBx.Text))
But this didn't really work for me.
With "abc" I got False. (Perfect.) With abc% I got False. (No good.)
There is no shortage of examples for how to do everything except what it is that I want to do (as usual)...