I have a string variable,
ZipCode = “Salt Lake City CA 78978” or “New York NY 76521-1234”
My requirement is to split the above strings into 3 sets basically
So the output should be following format,
Salt Lake City (City Name) or New York (City Name)
CA (State Name) or NY (State Name)
78978 (Zip Code) or 76521-1234 (Zip Code)
If its a single word city name, the following is working well for me ZipCode.Split({" “,”-“,”,"},StringSplitOptions.None)(0)
but need help with other 2 kinds of scenario !
Any help will be much appreciated.