public static List <KeyValuePair <uint, ulong> > ParseKeyUlongValuePairList(string str) { List <KeyValuePair <uint, ulong> > ret = new List <KeyValuePair <uint, ulong> >(); ret.Clear(); str = str.Replace(" ", ""); var matchs = System.Text.RegularExpressions.Regex.Matches(str, @"\{(\d+),(\d+)\}"); foreach (System.Text.RegularExpressions.Match _match in matchs) { if (_match.Success) { uint goodsId = (DBTextResource.ParseUI(_match.Groups[1].Value)); ulong num = DBTextResource.ParseUL(_match.Groups[2].Value); ret.Add(new KeyValuePair <uint, ulong>(goodsId, num)); } } return(ret); }