Fixing a bug in date replacement regex.