Hi,

I want to capitalize all letters in an <b> tag (and remove the tag):

Qt Code:
  1. QRegExp rx("\\<b\\>(.*)\\</b\\>");
  2. rx.setMinimal(true);
  3. str.replace(rx, QString("\\1").toUpper());
To copy to clipboard, switch view to plain text mode 

but '\\1' is unfortunately replaced after the toUpper()
So, how can I achieve to upper case the letters in a tag?



Thanks,

Lykurg