I have a long string that has tags i.e. <row> <cell> etc.
I would like to use a regexp to find all the occurences
Dim re As New Regex("<.+>")
Dim mc As MatchCollection = re.Matches(rtbFormattedText.Text)
Dim m As Match
For Each m In mc
the problem is it returns the following line as a single match
<f name="Nobel-Regular"><z newsize="24.0"><color name="LexusGold">
How do I return each <*> using regexp?
The point I am trying to acheive is
The text is in a richtext box, when the text changes in the box, I want to go through and highlight all the tags. Anything in <>. I was going to use a regexp then find the position start of the match in the RTB and the length, then highlight it. If anyone can think of a better way, I will except that as well.