Re: Advanced Regexp Question

2012-01-08 Thread Scot P. Floess
I could be wrong, but my guess is he wants this first pass (I suppose because that's what I'd want)... The only problem with twice is...it doesn't address what happens if there is a third, fourth and fifth (and so on) references... On Sun, 8 Jan 2012, Andy Stevens wrote: On 6 Jan 2012 21:

Re: Advanced Regexp Question

2012-01-07 Thread Andy Stevens
On 6 Jan 2012 21:12, wrote: > Say I have a string in a file like this: > >require(["a","foo/b","foo/c"], function(){...}) > > What I want to do is replace all the "foo" with "bar" so the final product > looks like this: > >require(["a","bar/b","bar/c"], function(){...}) > > With re

Re: Advanced Regexp Question

2012-01-07 Thread Scot P. Floess
Greg, I've been looking at this for about an hour or so... I'm stumped too ;) On Fri, 6 Jan 2012, greg.zol...@aviall.com wrote: Hello, I am able to do some very simple regexp replacement with the replaceregexp ant task but now need to do something a little more advanced. Say I have a strin

Advanced Regexp Question

2012-01-06 Thread Greg . Zoller
Hello, I am able to do some very simple regexp replacement with the replaceregexp ant task but now need to do something a little more advanced. Say I have a string in a file like this: require(["a","foo/b","foo/c"], function(){...}) What I want to do is replace all the "foo" with "bar"