If you want to be sure that you're matching the last right parenthesis:
$a =~ s/\)[^)]*$//;In reply to Re: minimal matching to end of string in regular expressions
by MVS
in thread minimal matching to end of string in regular expressions
by ISAI student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |