Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim re as New RegExp, _
eMatch As Match, _
eMatches As MatchCollection
re.Global = False ' first match only, true is all matches
re.Pattern = "\d*" ' Any number of digits [0-9] in a row
eMatches = re.Execute("abcd19") ' Creates a collection of
' all the matches
For Each eMatch in eMatches ' Loop through all matches
Msgbox eMatch.Value
Next
Dim strVal As String, _
intNum As Integer, _
i As Integer
strVal = "abcd19"
For i = 1 To Len(strVal)
If IsNumeric(Mid(strVal, Len(strVal) - (i - 1), 1)) Then
intNum = Val(Right(strVal, i))
Else
Exit For
End If
Next i
MsgBox intNum