$str =~ /$RE{balanced}{-parens=>'{}'}/ and substr $str. $-[0] + 1, $+[0] - $-[0] - 2, 'REPLACEMENT'
In reply to Re: Regexp::Common balanced curlies substitution
by JavaFan
in thread Regexp::Common balanced curlies substitution
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |