I'm using the following code to extract a number, upto 3 digits long, from a
web page:
Dim str2Find As String = ">(\d{0,3}| )<"
Dim regNumReplies As New RegularExpressions.Regex( _
str2Find, Options:=RegularExpressions.RegexOptions.Singlelin e)
Return regNumReplies.Matches(str, str2Find).Item(0).Groups(1).ToString
If the number does not exist, it returns " ". Is there a way, using
RegEx, to return either the digits found, or if " " is found, return
"0"?
--
|
+-- Thief_
|