ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: replaceregex TokenFilter
Date Wed, 13 Aug 2003 13:33:34 GMT
Damned if that didn't work!  Thanks, Jan!

-Matt

--- Jan.Materne@rzf.fin-nrw.de wrote:
> 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
> > 
> 


__________________________________
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
View raw message