How to replace all strings matching a pattern with corresponding lower case strings ?
- From: anonym <doremesa@xxxxxxxxx>
- Date: Thu, 15 Jan 2009 10:28:20 -0800 (PST)
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.
.
- Follow-Ups:
- Prev by Date: Re: How to search for leaks
- Next by Date: Urgent opening for Tandem System Engineer in San Francisco, CA-1year long contract
- Previous by thread: How to search for leaks
- Next by thread: Re: How to replace all strings matching a pattern with corresponding lower case strings ?
- Index(es):