codice:
$str = 'GialloRossoVerdeNero';
preg_match_all("#[A-Z]#",$str,$mth);
//print_r($mth); giusto per vedere l'output
echo $mth[0][0];