"Jeff" <no**@nothingX.comwrote in message
news:46***********************@free.teranews.com.. .
>
Okay, now I'm really confused.
I got this figured out somewhat, but either there is a major bug somewhere,
or I don't understand something fundamental (and it is likely the latter)
If I uses a regular expression validator from the toolbox and the expression
[a-zA-Z1-9]* it will properly match letters and numbers.
The exact same regular expression in the code below fails and matches
everything. Something seems to be going on everytime that I enter a reg
expression with a bracket - it will work with the toolbox validator, but not
when I use all vb code.
Can someone explain? I'm lost.
Dim regexobj As Regex = New Regex("[a-zA-Z1-9]*")
If RegexObj.IsMatch(TBUser.Text) = False Then
--
Posted via a free Usenet account from
http://www.teranews.com