ok here is my code
vb Code:
Dim objRegEx As System.Text.RegularExpressions.Regex Dim objMatch As System.Text.RegularExpressions.Match Dim arrLinks As New System.Collections.ArrayList() ' Create regular expression objRegEx = New System.Text.RegularExpressions.Regex( _ "(?<=<a rel='lightbox' href=).*(?=>Image Only</a></td>)", _ System.Text.RegularExpressions.RegexOptions.IgnoreCase Or _ System.Text.RegularExpressions.RegexOptions.Compiled) ' Match expression to HTML objMatch = objRegEx.Match(HTML) ' Loop through matches and add <1> to ArrayList While objMatch.Success Dim strMatch As String strMatch = objMatch.Groups(1).ToString ListBox1.Items.Add(strMatch) objMatch = objMatch.NextMatch() End While
but it is just adding blank lines to the listbox and not the strings it found
![]()




Reply With Quote