From: Daniel Brumbaugh Keeney Date: 2008-06-24T16:45:29+09:00 Subject: Re: Regex extracting certain characters On Tue, Jun 24, 2008 at 2:39 AM, Clement Ow wrote: > C:/Ruby/20080205/2008 > C:/Ruby/2008 > > I need a regular expression which can select just 2008 and utilise the > string that contains just 2008 instead of 20080205. I'm not exactly certain, but you may want /\D\/2008$/ Daniel Brumbaugh Keeney