use Regexp::Common qw /balanced/; my $re = qr{$RE{balanced}{-begin => "{{"}{-end => "}}"}}; $text =~ s/$re//g;
In reply to Re: Efficient way to match and replace nested braces (etc.)
by Anonymous Monk
in thread Efficient way to match and replace nested braces (etc.)
by dmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |