Wir wollen von einer webseite die Version auslesen. Nur leider funktioniert etwas nicht richtig...
Code:
Webseite: Hier
Code:
VB.NET-Quellcode
- Dim _reg As Regex = New Regex("<span class='filebaseVersionNumber'>([A-Za-z0-9\-]+)\</span>$", RegexOptions.IgnoreCase)
- ' The input string.
- Dim value As String = strHml
- ' Invoke the Match method.
- ' ... Use the regex field.
- Dim m As Match = _reg.Match(value)
- ' If successful, write the group.
- If (m.Success) Then
- Dim key As String = m.Groups(1).Value
- MsgBox(key)
- End If
Webseite: Hier