se il problema è sulla funzione preg_match_all perchè non posti quella?