Hi again!
I need to match HTML tags (when one tag opens and when it closes). If I have
Qt Code:
  1. <span class="css1">Some text</span>
To copy to clipboard, switch view to plain text mode 
It's very easy to match it. But I can't match them correctly when the following happens:
Qt Code:
  1. <span style="font-weight: bold">So<span style="color:#F00">me</span> text</span>
To copy to clipboard, switch view to plain text mode 
The first opened tag matchs the first closed tag, not the last one.

If someone can give me an example or tell me how to do it, I'll be really thanked.
Thanks in advanced.
I'm sorry for my poor English, I'm Argentinian