ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@fr.st
Subject replaceregexp issue
Date Thu, 22 Aug 2002 10:27:42 GMT
Hi,

My goal is to replace in a set of files
@foo@
@tmp@

by

${foo}
${tmp}

I tried the following replaceregexp:

<replaceregexp flags="g" byline="false" match="@([a-zA-Z0-9_]*)@" replace="$${\1}">

With jdk1.1.8 it gives me:
${foo}
${foo}
So the $ sign is ok but the value is not preserved.

And with moderns jdk  it gives me:
{foo}
{tmp}
I can't manage to get the $ signs.

I tried this with jakarta-oro, and jdk1.4 regexp implementations.

Thanks for your help.

--
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