The code below never triggers the text "out of loop" in txtTest. The program doesn't seem to crash either, it just doesn't execute the code after the for loop. When I comment out the Regex stuff the code behind the for loop is executed. Can anyone help me please, I'm riddled :s
Code:
For j = 0 To dtParameters.Rows.Count
Dim RegexObj As Regex = New Regex("(?<=<B>" & dtParameters.Rows(j).Item("Text") & "</B> </TD><TD width=250>).*?(?=<)")
Dim MatchObj As Match = RegexObj.Match(Me.txtDescription.Text)
Next
Me.txtTest.Text = "Out of loop"