ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject replaceregex TokenFilter
Date Tue, 12 Aug 2003 20:24:53 GMT
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:

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?


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message