Sounds like you want Regexp::Common and it's $RE{balanced}{-parens=>'[]'}.
In reply to Re: Regex dynamics by Fletch in thread Regex dynamics by Hena