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

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I need a regular expression that has to bring me the following answer.
If the date entered as '4-10-31' then change it to 2004-10-31.
If the year entered as '14-11-31' then change it to 2014-11-31
It can be done in many ways. But I need it to be done using single regular experssion.
Becasue Perl can do that

"Keep pouring your ideas"