- or download this
#!/usr/bin/perl -w
use strict;
...
$text =~ s/$RE{balanced}{-parens=>'{}'}//g;
print $text;
- or download this
our $re = qr/(?:\{(?:(?>[^\{\}]+)|(??{$re}))*\})/;
- or download this
use YAPE::Regex::Explain;
print YAPE::Regex::Explain->new($re)->explain;
- or download this
The regular expression:
...
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------