(.*)|Usi',$data,$matches); $rep1 = str_replace('', '', $rep1); $pieces = explode(" ", $rep2); $date1 = $pieces[0]; $date2 = $pieces[1]; $date3 = $pieces[2]; $date4 = $pieces[3]; $date5 = $pieces[4]; preg_match('|