A
anonym
Hi,
I am trying to process some text content using Java. I want to
replace all strings matching a pattern with corresponding lower case
strings. For example, replace all <ABCD> with <abcd>
I tried the following, but it doesn't work:
text = text .replaceAll("(<)(.+?)[^(<>)](>)", "$1" + "$2".toLowerCase
() + "$3");
Any help is appreciated.
I am trying to process some text content using Java. I want to
replace all strings matching a pattern with corresponding lower case
strings. For example, replace all <ABCD> with <abcd>
I tried the following, but it doesn't work:
text = text .replaceAll("(<)(.+?)[^(<>)](>)", "$1" + "$2".toLowerCase
() + "$3");
Any help is appreciated.