From: Charles Thornton Date: 2008-03-05T04:37:23+09:00 Subject: Re: Named captures and regular captures Dave Thomas wrote: > It seems that once you have a named capture in a regular expression, > you can no longer use numeric captures. > > m = /(.)(.)(?\d+)(\d)/.match("THX1138.") > m.begin(:digit_prefix) > m.begin(2) #=> index 2 out of matches > > $1 #=> 113 > $2 #=> nil > > m.to_a #=> => ["HX1138", "113"] > > > Is this expected? > > > Dave > > > > > > My God Dave -- Did not know you were that old! THX1138 -- My second childhood SCI-FI movie! Chuck T.