I am using String.replaceAll(String, String)
to replace some regular expression. Something like that:
"test Test tEsT wOrd".replaceAll("(?i)(\\w+)", "$1")
I need to replace this capture with its upper variant, are there any way to do this or I need to use java.util.regex.Matcher
?