![]() |
|
"be consistent" | |
PerlMonks |
Re^2: while-loop regex substitution with 'g' optionby ibm1620 (Hermit) |
on Apr 22, 2024 at 04:55 UTC ( [id://11159022]=note: print w/replies, xml ) | Need Help?? |
Right. When the substitution can produce new matches, you need to restart the scan from the beginning. Strictly speaking, then, is /g needed? hm.
In Section
Seekers of Perl Wisdom
|
|