Re: Using back-references in 'range'

2013-09-24 Thread Andrew Long
On 23 Sep 2013, at 19:44, Ben Fritz wrote: On Monday, September 23, 2013 11:54:27 AM UTC-5, Andrew Long wrote: What I thought of was to use a global operation limited to the 'for' and the matching 'repeat', and what I tried was this:-

Re: Using back-references in 'range'

2013-09-23 Thread Ben Fritz
On Monday, September 23, 2013 11:54:27 AM UTC-5, Andrew Long wrote: What I thought of was to use a global operation limited to the 'for' and the matching 'repeat', and what I tried was this:- :/^\(\s\+\)for\s\+\(\a\k*\)\s\+to.*/,/^\1repeat/g/\2/s/\2/i/g Only I fell at the first

Using back-references in 'range'

2013-09-23 Thread Andrew Long
I have a program with a number of constructs like this:- for subscriptI to count someThing do something( subscriptI ) := repeat @... begin for subscriptJ to count someThingElse do someThingElse( subscriptJ ) := repeat end And I ant to replace all the different subscripts