In general, it is difficult to deal with balanced delimiters using regexps alone (the problem arises when you have nested parenthesized expressions). You may want to take a look at Text::Balanced.
the lowliest monk
In reply to Re: strip out anything inbetween brackets
by tlm
in thread strip out anything inbetween brackets
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |