Hi Guys,

I have my regex setup, which works prefectly:

code:

vb.net Code:
  1. Dim testStr As String = "<option value=""18621335"">graham23s</option>"
  2.             Dim rx As New Regex("\<option value=""(\d+)""\>(.+?)\<\/option\>")
  3.  
  4.             MsgBox(rx.Match(testStr).Groups(1).Value)
  5.             MsgBox(rx.Match(testStr).Groups(2).Value)

When i put it into my own application i have done:

code:

vb.net Code:
  1. Dim stringSource As New Regex("\<optionvalue=""(\d+)""\>(.+?)\<\/option\>", RegexOptions.IgnoreCase Or RegexOptions.Singleline)
  2.             Dim stringMatches As MatchCollection = stringSource.Matches(stringClean)
  3.  
  4.             For Each stringsMatch As Match In stringMatches
  5.  
  6.  
  7.  
  8.             Next

what i am having trouble with is getting the values while in the foreach loop, any help would be appreciated.

thanks a lot guys

Graham