Re: replaceregexp Question

2008-02-19 Thread Olivier Gies
In that case, I think it's just a matter of RegExp format: byline="true" /> (untested) If it is for more complex matches, I don't think was designed for it. I think that 1 call per expression to replace is the intent. Olivier Original Message Sub

Re: replaceregexp Question

2008-02-19 Thread Z W
Olivier, Dave I meant to ask if it's possible with a single that I could modify different and multiple matches of different words. Or do I have to do multiple , 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

Re: replaceregexp Question

2008-02-19 Thread Olivier Gies
You should use in order to replace all occurences, or use combination of flags described below, as taken directly from Ant user manual (http://ant.apache.org/manual/OptionalTasks/replaceregexp.html): flags The flags to use when matching the regular expression. For more information, co

Re: replaceregexp Question

2008-02-19 Thread David Weintraub
You can do this with filterchains while copying: http://ant.apache.org/manual/CoreTypes/filterchain.html Read up on that and play around with it. I've done it before, but unfortunately, I can't give you the exact details. On Feb 19, 2008 1:55 PM, Z W <[EMAIL PROTECTED]> wrote: > Hi > > My underst