in reply to capturing matching parenthesis

Yes. Re: Maximal match in a recursive regex