in reply to Re: Re: Parsing parenthetical arguments recursively
in thread Parsing parenthetical arguments recursively
while ($tmp =~ /\(((?:[^()])*?)\)/) { my $assert = $1; $assert =~ s/\|/\\\|/g; $tmp =~ s/\($assert\)/$1/; } ($tmp =~ /\(|\)/) ? print "Don't match.\n" : print "Match.\n";
|
|---|