in reply to RegEx for Matching paranthesis
See perlfaq6 "Can I use Perl regular expressions to match balanced text?" but be sure you're looking at a recent version (Perl 5.8 or above) since earlier versions don't mention the excellent Text::Balanced solution.
It's also discussed in the Perl Cookbook, Recipe 6.17 (Matching Nested Patterns).
/-\
|
|---|