in reply to Re: while-loop regex substitution with 'g' option
in thread while-loop regex substitution with 'g' option
Right. When the substitution can produce new matches, you need to restart the scan from the beginning. Strictly speaking, then, is /g needed? hm.