On Tue, Jun 24, 2008 at 2:39 AM, Clement Ow
<clement.ow / asia.bnpparibas.com> 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