|
-
Dec 25th, 2006, 03:41 PM
#18
Thread Starter
PowerPoster
Re: [2005] RegEx Need Simple Ones
 Originally Posted by gigemboy
The Regex man strikes back.... should handle all three cases...
vb Code:
Dim s As String = ""
Dim Pattern As String = "^[\d]*$|^[a-zA-Z]*$|^[\s]{0}$"
If System.Text.RegularExpressions.Regex.IsMatch(s, Pattern) = True Then
MessageBox.Show("Match!")
Else
MessageBox.Show("No Match!")
End If
Hey thanks for that! It actually takes care of all my scenarios.
Appreciate it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|