Hi Alex,

I didn't test it, but you could try 

replace="${line.separator}${line.separator}"

Stefano Marsili
http://www.efanomars.net/pf


--- Alex Egg <[EMAIL PROTECTED]> wrote:

> 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?
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to