I have an ant target that calls the replaceregexp task
<target name="regexp.replace"> <replaceregexp file="${file.temp}" match="(.*)" replace="first operation on \1 second operation on \1" byline="true"/> </target>
file.temp
A1 A2
desired result:
first operation on A1 second operation on A1 first operation on A2 second operation on A2
What to insert as a new char string to get the desired result in the ant replaceregexp parameter?
replace="first operation on \1 %NEW_LINE% second operation on \1"
java regex replace newline ant
popalka
source share