From: Justin Collins Date: 2006-04-27T05:17:28+09:00 Subject: Re: Date-building regexes Ashley Moran wrote: > Hi > > Does anyone know of a regular expression for *building* a date? That is one > that will match "3", "30", "30/", "30/0" (etc), but not "30/099" or > (ideally) "30/02"? I've had a quick look into it and it seems pretty > complex, and I figured someone must have solved the problem before. > > Thanks > Ashley > > I'm not sure exactly what you mean by 'building' a date, but have you looked at Date::parse? Does that do what you want? http://ruby-doc.org/core/classes/Date.html#M001576 -Justin