Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Alex Egg
Yeah, that works: I just used the lf ascii code and that works: On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: Oops, that should of course be &lf;. On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: > How about using entities? Are or or &#lf; defined in th

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Aaron Davies
Oops, that should of course be &lf;. On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: How about using entities? Are or or &#lf; defined in the XML dialect we're using? On 7/18/06, Stefano Marsili <[EMAIL PROTECTED]> wrote: > I strongly doubt it's the easiest way to achieve what > you wan

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Aaron Davies
How about using entities? Are or or &#lf; defined in the XML dialect we're using? On 7/18/06, Stefano Marsili <[EMAIL PROTECTED]> wrote: I strongly doubt it's the easiest way to achieve what you want, but you could write a script or define a scriptdef that writes the \n (0x0A) to a property

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Stefano Marsili
I strongly doubt it's the easiest way to achieve what you want, but you could write a script or define a scriptdef that writes the \n (0x0A) to a property and use it. Anyway, if you want your build to be platform indipendent, I think ${line.separator} is still the best choice. Stefano Marsili PFun

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Alex Egg
Hi, I think some of your message got cut off... Is there any way you can think of to specify the line break literally in the xml attribute? (Using the line.separator property works by the way!) Thanks, Alex On 7/17/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: I think that should work. Basi

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Scot P. Floess
I think that should work. Basically, I think the problem is that the XML attribute is being taken literally so \n is literally a backslash and n Stefano Marsili wrote: Hi Alex, I didn't test it, but you could try replace="${line.separator}${line.separator}" Stefano Marsili http://www.efan

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Stefano Marsili
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 brea

ReplaceRegExp Task and line breaks

2006-07-17 Thread Alex Egg
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: however, it replace the file with the \n\n as literal text. How can I replace these w/ 2 line breaks?