$_ = "{a{12}s{ss}}"; my $myre; $myre = qr/ { (?: (?>[^{}]+) | (??{$myre}) )* }/x; my ( $match ) = /($myre)/; print $match;
In reply to Re: metachar match
by borisz
in thread metachar match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |