my $match; $match = qr/(?:\((?:(?>[^\(\)]+)|(??{$match}))*\))/; if ( $text =~ /($match)/ ) { print $1; # text between nested ( and ) }
In reply to Re: RegEx for Matching paranthesis
by borisz
in thread RegEx for Matching paranthesis
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |