日期:2014-05-17 浏览次数:20658 次
{"ean":"6933365134940","name":"","titleSrc":"http:\/\/www.liantu.com\/tiaoma\/eantitle.php?title=RUhRQXVTbnEvN3MvNU9nRXdKbEcxbDdkOXpEd0hkYlo=","guobie":"\u4e2d\u56fd","supplier":"\u5e7f\u5dde\u5e02\u632f\u5174\u5b9e\u4e1a\u6709\u9650\u516c\u53f8","sort_id":7,"faccode":"69333651","fac_name":"\u5e7f\u5dde\u5e02\u632f\u5174\u5b9e\u4e1a\u6709\u9650\u516c\u53f8","fac_status":"\u6709\u6548"}
string input = @"titleSrc"":""(?<name>\S+)"",""guobie";
string name = "";
try
{
Regex re = new Regex(input);
foreach (Match m in re.Matches(strcon))
{
if (m.Groups["name"].Value != "")
{
name = m.Groups["name"].Value.Trim();
break;
}
}
}