ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Egg" <egg...@gmail.com>
Subject ReplaceRegExp Task and line breaks
Date Mon, 17 Jul 2006 07:33:49 GMT
Hi,

I'm using the replaceRegexp ant task and I want to replace whatever matches
my pattern with 2 line breaks.

Right now I'm doing this:

     <replaceregexp
            match="(?&lt;=&lt;\/method&gt;)\s*(?=^[\t ]*&lt;method)"
            replace="\n\n"
            flags="gmi"
            encoding="UTF-8"
    >
            <fileset dir="." includes="${xml.include}" />
    </replaceregexp >

however, it replace the file with the \n\n as literal text. How can I
replace these w/ 2 line breaks?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message