http://www.perlmonks.org?node_id=806244


in reply to Re^2: Recursive substitution
in thread Recursive substitution

I did try modifying pos

Yes, but not within the regex. Whatever it is you want to do, you said you wanted to do it within a regex.

My question was just whether there was some other clever approach that I was missing.

Again, another approach to do what?