fix the date regex issue