I have the following string:
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
I need to extract Beyonce Knowles
, Jay-Z
, KANYE WEST
, West Palm Beach, FL
and San Antonio Texas
(separated)
I'm still new to regex, but so far I've got '/^[A-Z]+/
How do I fix my regex to account for the extracted words I am trying to obtain?
Thanks