From: Mark Slagell Date: 2003-08-27T00:35:10+09:00 Subject: Re: Specification of Ruby regex? Florian Frank wrote: > On 2003-08-26 21:56:39 +0900, Mark Slagell wrote: > >>year, month, day = >> /(\d{4})-(\d{1,2})-(\d{1,2})/.match(s).to_a >>(where s is the string to be matched) > > > > You probably meant to write this: > > year, month, day = /(\d{4})-(\d{1,2})-(\d{1,2})/.match(s).captures um, no, I wrote what I meant, but is something wrong with to_a there?