From: Gavin Sinclair Date: 2004-09-23T08:43:09+09:00 Subject: Re: Regexp Arity On Thursday, September 23, 2004, 4:56:23 AM, Austin wrote: > On Thu, 23 Sep 2004 03:54:31 +0900, Yukihiro Matsumoto > wrote: >> In message "Re: Regexp Arity" >> on Thu, 23 Sep 2004 03:26:44 +0900, "trans. (T. Onoma)" >> > |Just ran into a need to know how many >> parenthetical groupings a Regexp has. >> |Would #arity for Regexp be a good idea? >> I'm not sure if it should be named 'arity'. > Regexp#groups ? > Regexp#groupcount? Regexp#ngroups Gavin