http://www.perlmonks.org?node_id=504917


in reply to Re: need regular expression
in thread need regular expression

I agree. In the "Real World", you probably would want to use a module like DateTime to do this sort of thing.