最佳答案:可以用正则表达式提出来stringstr="你那段代码";Regexreg=newRegex(@"\{""face"":(\d+),"&
可以用正则表达式提出来stringstr="你那段代码";Regexreg=newRegex(@"\{""face"":(\d+),""sex"":(\d+),""nick"":""(\w+)"",""age"":(\d+),""province"":""(\w+)"",""uin"":(\d+),""stat"":(\d+),""country"":""(\w+)"",""city"":""(\w+)""\}")
;MatchCollectionmc=reg.Matches(str)
;foreach(Matchminmc){//stringface=m.Groups[1].ToString()
;stringsex=m.Groups[2].ToString()
;stringnick=m.Groups[3].ToString()
;stringage=m.Groups[4].ToString()
;stringprovince=m.Groups[5].ToString()
;stringuin=m.Groups[6].ToString()
;stringstat=m.Groups[7].ToString()
;stringcountry=m.Groups[8].ToString()
;stringcity=m.Groups[9].ToString();//数据读出来,如果以后要用,就存到一个数组里去}