Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Need RegEx help with my expression. Currently Not working.?
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
Code:
<input id="hash" type="hidden" name="humanverify[hash]" value="e5a730f55f6c63196ae50559d6c5fa37" />
This is the code that I am using but it doesn't produce anything.
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