in reply to Reg expression on day

Since this is already getting out of hand....

substr($_,3,2) += 0;

This will work only if the month always has two digits.