ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Using ReplaceRegExp
Date Thu, 26 Sep 2002 13:42:04 GMT
On Tue, 24 Sep 2002, <ext.focal.malaprade@sncf.fr> wrote:

> Thanks for that. now I wanted to add a value at the end
> 
> <replaceregexp file="temptest.csv" match="(.);$" 
>                replace="\1<a value>" byline="true" />
> 
> now if i put replace="\100" to add a '00' (reusing the result '\1'),
> it doesn't work.

What is the result?

\1 will only match the very last character of the line (in front of
the ";"), you probably want to use (.*) instead.

Stefan

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