Have you tried ${line.separator} ?

Jan

> -----Original Message-----
> From: Matt Benson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 12, 2003 10:25 PM
> To: Ant Users List
> Subject: replaceregex TokenFilter
> 
> 
> I am having trouble with the replaceregex TokenFilter.
>  I am trying to insert newlines, for example replacing
> the first space in a line with a newline... so for my
> match expression I might have
> 
> "^([^ ]+) (.*)"
> 
> then I of course want to replace with the same stuff:
> "\1\2"
> 
> but no matter what I insert between \1 and \2 I don't
> get a newline.  I have tried "\n", "\\n", "\\\\n", and
> "\\\\\\\\n", to no avail.
> 
> Surely someone else has wanted to embed a
> newline--what is the right way?
> 
> Thanks,
> Matt
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to