From: Martin DeMello Date: 2003-08-26T21:47:23+09:00 Subject: Re: Specification of Ruby regex? Emmanuel Touzery wrote: >> > btw, since there is a thread about that, i wanted to ask: > 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})" > > matches "2002-4-6" > and then in my match groups i have "year", "month", "day". I started doing this (xregex: http://zem.novylen.net/ruby/index.html), but stopped because Onigurama now supports this feature. The code's usable as-is, though, and I'd be happy to add features if you want to use it. martin