A non-greedy quantifier could be used to match only the first closing parenthesis.
s/\(.*?\)//In reply to Re^2: Regex operation optimisation
by oldmanwillow
in thread Regex operation optimisation
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |