ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
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:
"\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
View raw message