ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bin Chen" <binc...@bea.com>
Subject RE: Help with Replace regexp with ant 1.5
Date Wed, 15 Jan 2003 17:55:09 GMT
Stephan: Thanks for your tips. The newline works now with the unicode.
However, the backslash still does not work even with "&#x5c;". Running
with -debug flag, ant did give the message of substituted pattern "\" as
expected, but the output still did have "\" shown. Is this a bug?

Thanks again,

Bin

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Wednesday, January 15, 2003 7:19 AM
To: ant-user@jakarta.apache.org
Subject: Re: Help with Replace regexp with ant 1.5


On Tue, 14 Jan 2003, Bin Chen <binchen@bea.com> wrote:

> Here "\n" is supposed to be a newline,

use &#x0A; or better ${line.separator} instead.  \n doesn't mean
anything special to XML or the regexp engine.

> when the substitution occured, all back slashes were taken out,

doubling them should help - if all else fails, &#x5c; is the way to
go.

> BTW, I am using jdk1.4.1_01 and jakarta ORO and jakarta regexp as
> recommended by the ant document.

We recommend to one of them, not all three 8-)

With your setup, JDK 1.4 will take precedence.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message