I have a list of countries in a string format like this:
123 USA, America
126 South Africa, Africa
I want to split country code, country name and continent and save it in a list or array. Country code will have index[0], country name[1] and continent[2] in that order.
I tried this:
string number = "123 USA, America";
string[] numbers = number.Split(',');
But that only split the string into two: "123 USA" and "America", I want to be able to get the number part separate as well