From: Emmanuel Touzery Date: 2003-08-26T22:03:14+09:00 Subject: Re: Specification of Ruby regex? Mark Slagell wrote: >>> >>> does ruby support named matches (sorry i don't know the proper >>> terminology)? >>> C# does it like this: >>> "(?\d{4})-(?\d{1,2})-(?\d{1,2})" >> > > Is this helpful at all? > > year, month, day = > /(\d{4})-(\d{1,2})-(\d{1,2})/.match(s).to_a > > > (where s is the string to be matched) sure, i just asked for this particular feature "because it's cool", and also i can probably think about some cases in which it's actually useful ;O) (although probably not terribly useful) but otherwise i'm a happy user of ruby regexps even without it. emmanuel