Stephan: Thanks for your tips. The newline works now with the unicode.
However, the backslash still does not work even with "\". 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:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 7:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Help with Replace regexp with ant 1.5


On Tue, 14 Jan 2003, Bin Chen <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to