in reply to regex question Underscores, lines and paratheses.

your post is badly formatted, but at first glance your regex looks halfway OK, so perhaps the problem is somewhere else.

Do you want to match any parenthesis, bracket, brace, or do you want to match them balanced?

In the latter case, you might be interested in Regexp::Common.
  • Comment on Re: regex question Underscores, lines and paratheses.