my @matches = $loop_line =~/\[(.*?)\]/; # Build a list of matches for ( @matches ) { $loop_line =~ s/\Q$_\E/$replace{$_}/; # \Q makes sure no strange t +hings happen }
In reply to Re: Replacing multiple matches
by Berik
in thread Replacing multiple matches
by alongwor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |