How to get country name
问题 I used the code below to get the list of culture type, is there a way on how to get just the country name? Thank you static void Main(string[] args) { StringBuilder sb = new StringBuilder(); foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.SpecificCultures)) { sb.Append(ci.DisplayName); sb.AppendLine(); } Console.WriteLine(sb.ToString()); Console.ReadLine(); } Sample Output: Spanish (Puerto Rico) Spanish (United States) 回答1: Well, this regular expression seems to do the job in