Hi,
I want to capitalize all letters in an <b> tag (and remove the tag):
Code:
rx.setMinimal(true);
but '\\1' is unfortunately replaced after the toUpper():(
So, how can I achieve to upper case the letters in a tag?
Thanks,
Lykurg
Printable View
Hi,
I want to capitalize all letters in an <b> tag (and remove the tag):
Code:
rx.setMinimal(true);
but '\\1' is unfortunately replaced after the toUpper():(
So, how can I achieve to upper case the letters in a tag?
Thanks,
Lykurg
Code:
rx.setMinimal(true); int s = -1; while((s = rx.indexIn(str, s+1))>=0){ str.replace(s, rx.cap(0).length(), rx.cap(1).toUpper()); s+= rx.cap(1).length(); }