I have the following regular expression which is used to give me the tags in the HTML string:
<[^>]*>
So, if I pass in the following:
<b> Bold </b>
Then it will give me:
<b>
</b>
How can I make it to give me:
<b>
Bold
</b>
UPDATE:
Here is another example to get the big picture:
If this is the text:
<b>Bold</b> This is the stuff <i>Italic</i>
then the final result would be the following:
matches[0] = <b>
matches[1] = Bold
matches[2] = </b>
matches[3] = This is the stuff
matches[4] = <i>
matches[5] = Italic
matches[6] = </i>