improved regex for date parse to allow attributes