I currently have a richtext (GetIt.text) that contain source code from a page. In the below example I am trying to grab anything between the two tags but I'm not sure how to set this up.
My current Regex doesn't return a result.
I am trying to grab anything between the value tags value="anything here"
Any ideas?
Thanks
HTML line that contains the value="" that I need
This is the code that I am using but it doesn't produce anything.
My current Regex doesn't return a result.
I am trying to grab anything between the value tags value="anything here"
Any ideas?
Thanks
HTML line that contains the value="" that I need
Code:
<input id="hash" type="hidden" name="humanverify[hash]" value="e5a730f55f6c63196ae50559d6c5fa37" />
Code:
Sub RegExGet()
' The input string.
Dim value As String = "name=""humanverify[hash]"" value=""e5a730f55f6c63196ae50559d6c5fa37""
' Invoke the Match method.
Dim m As Match = Regex.Match(GETIT.Text, _
"humanverify[hash]"" value=""([A-Za-z0-9\-]+)""", _
RegexOptions.IgnoreCase)
' If successful, write the group.
If (m.Success) Then
Dim key As String = m.Groups(1).Value
MessageBox.Show(key)
Else
MessageBox.Show("We Failed!!!")
End If
End Sub