Hi,
Suppose I have a string like: (A)((B)(C))
I need a pattern that looks for strings within ( and ), so that should return:
(A)
((B) (C))
(B)
(C)
This is the code I have now, but I have no idea about what pattern can do that:
Thanks
Suppose I have a string like: (A)((B)(C))
I need a pattern that looks for strings within ( and ), so that should return:
(A)
((B) (C))
(B)
(C)
This is the code I have now, but I have no idea about what pattern can do that:
Code:
Dim oRegExp As New System.Text.RegularExpressions.Regex(txtPattern.Text)
Dim m As System.Text.RegularExpressions.Match = oRegExp.Match(txtText.Text)
rtbResults.Text = ""
For i As Integer = 0 To m.Captures.Count - 1
sText += m.Captures(i).Value & vbCrLf
Next
Thanks