ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Gies <>
Subject Re: replaceregexp Question
Date Wed, 20 Feb 2008 03:40:14 GMT
In that case, I think it's just a matter of RegExp format:

<replaceregexp flags="g" match="(sun|moon)" replace="\1fix" 
byline="true" /> (untested)

If it is for more complex matches, I don't think <replaceregexp> was 
designed for it. I think that 1 call per expression to replace is the 


-------- Original Message  --------
Subject: Re: replaceregexp Question
From: Z W <>
To: Ant Users List <>,
Date: 20/02/2008 11:35
> Olivier, Dave
> I meant to ask if it's possible with a single <replaceregexp>
> that I could modify different and multiple matches of different words.
> Or do I have to do multiple <replaceregexp>, twice in this case below ?
> Say in a file, there are two keywords I like to modify.
> sun to sunfix and moon to moonfix.
> Thanks


*Olivier Gies*

*Delivery Manager
Customs & Tax Software Engineering Center
Bull, Architect of an Open World ^TM
Phone: +86 (10) 65978001 - Ext 555 *

* <>*

*This e-mail contains material that is confidential for the sole use of 
the intended recipient. Any review, reliance or distribution by others 
or forwarding without express permission is strictly prohibited. If you 
are not the intended recipient, please contact the sender and delete all 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message