in reply to need regular expression

But I need it to be done using single regular expression.

Smells like homework to me... jesuashok, 'fess up?

Replies are listed 'Best First'.
Re^2: need regular expression
by Mutant (Priest) on Nov 02, 2005 at 13:44 UTC
    I agree. In the "Real World", you probably would want to use a module like DateTime to do this sort of thing.