$content =~ s{(foo.*?bar)}{ my $s = $1; $s =~ s{\Q$orig_zimzam\E}{$rep_zimzam}; $s; }sge;
Dave.
In reply to Re: Substitution with matching nested boundary conditions
by dave_the_m
in thread Substitution with matching nested boundary conditions
by redhotpenguin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |