You may want to have a look at Regexp::Common (especially Regexp::Common::balanced) or Text::Balanced if you have to deal with nested parentheses.
Hope this helps, -gjb-
In reply to Re: Parsing with reg ex
by gjb
in thread Parsing with reg ex
by ByteOrNybble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |