Quote Originally Posted by gigemboy
The Regex man strikes back.... should handle all three cases...
vb Code:
  1. Dim s As String = ""
  2. Dim Pattern As String = "^[\d]*$|^[a-zA-Z]*$|^[\s]{0}$"
  3. If System.Text.RegularExpressions.Regex.IsMatch(s, Pattern) = True Then
  4.       MessageBox.Show("Match!")
  5. Else
  6.       MessageBox.Show("No Match!")
  7. End If
Hey thanks for that! It actually takes care of all my scenarios.
Appreciate it!