Use Java and RegEx to convert casing in a string
Posted
by Andreas
on Stack Overflow
See other posts from Stack Overflow
or by Andreas
Published on 2010-05-05T06:11:04Z
Indexed on
2010/05/05
6:18 UTC
Read the original article
Hit count: 231
Problem: Turn "my testtext TARGETSTRING my testtext" into "my testtext targetstring my testtext"
Perl supports the "\L"-operation which can be used in the replacement-string.
The Pattern-Class does not support this operation:
Perl constructs not supported by this class: [...] The preprocessing operations \l \u, \L, and \U. http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
© Stack Overflow or respective owner