Modified it slightly its working now
VB Code:
Dim tbox As TextBox = DirectCast(sender, TextBox) If Regex.IsMatch(tbox.Text, "^([a-zA-Z0-9.]+)/([0-9]{2,2})$") = True Then Else MsgBox("Not valid String") End If
Thanks
Jorge
|
Results 1 to 3 of 3
Thread: Regular expressionsThreaded View
|
Click Here to Expand Forum to Full Width |