ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: replaceregex TokenFilter
Date Wed, 13 Aug 2003 05:39:46 GMT
Have you tried ${line.separator} ?


Jan

> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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