Let's say my texts are:
New York, NY is where I live.
Boston, MA is where I live.
Kentwood in the Pines, CA is where I live.
How do I extract just "New York", "Boston", "Kentwood in the Pines".
I can extract State name by pattern @"\b,\s(?"<"state">"\w\w)\s\w+\s\w+\s\w\s\w+"
I am using regular expression but I'm not able to figure out how to extract city names as city names can be more than two words or three.
spliton the,and just retain what occurs before it.