From: Florian Frank Date: 2003-08-26T23:10:12+09:00 Subject: Re: Specification of Ruby regex? 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 -- Claiming Java is easier than C++ is like saying that K2 is shorter than Everest. -- Larry O'Brian