Lykurg
4th March 2008, 09:14
Hi,
I want to capitalize all letters in an <b> tag (and remove the tag):
QRegExp rx("\\<b\\>(.*)\\</b\\>");
rx.setMinimal(true);
str.replace(rx, QString("\\1").toUpper());
but '\\1' is unfortunately replaced after the toUpper():(
So, how can I achieve to upper case the letters in a tag?
Thanks,
Lykurg
I want to capitalize all letters in an <b> tag (and remove the tag):
QRegExp rx("\\<b\\>(.*)\\</b\\>");
rx.setMinimal(true);
str.replace(rx, QString("\\1").toUpper());
but '\\1' is unfortunately replaced after the toUpper():(
So, how can I achieve to upper case the letters in a tag?
Thanks,
Lykurg