我有以下字符串:
Beyonce Knowles is married to Jay-Z and KANYE WEST is awesome and San Antonio Texas is great but not as good as West Palm Beach, FL
我需要提取Beyonce Knowles
, Jay-Z
, KANYE WEST
,West Palm Beach, FL
和San Antonio Texas
(分离的)
我还是正则表达式的新手,但到目前为止我已经有了'/^[A-Z]+/
如何修复我的正则表达式以解释我试图获取的提取词?
谢谢