我有一个字符串
$str="NassarWellerGomez-GarciaSanchez-RenedoLoeches-SanchezGomez-GarciaMunoz-FerrerasSanchez-RenedoChiaoHakkarainenWernerValkamaHarounPlett";
我只想匹配以大写字母开头的单词,例如:Nassar Weller Gomez-Garcia 等
I used this :
preg_match('/[A-Z][a-z]+/', $str,$match);
但它不起作用,请在这里帮助我!