Well, I searched here and in other forums without success, and don't get it by reading the java-docs.
In a recent
thread, Max told 'yes, capturing groups work in "replaceAll"', but didn't showed my error.
I want to split a certain token like this:
<name>groovy</name>
to
<name>
groovy
</name>
(xml-tag, content, xml-tag)
I use string.replaceAll (
pattern, matcher) like this:
(the typical hardly readable regex-syntax)
the result isn't - as intended - but:
The pattern is found, but the backreferences aren't interpreted the way I like.
How would I specify the capturing-groups 1, 2, 3 correctly?