<regex name="Iphone Home Page"><![CDATA[{'OriginalPrice'\:'(?<OriginalPrice>.*?)','FinalPrice'\:'(?<FinalPrice>.*?)','SoldOut'\:'(?<SoldOut>.*?)','DailyDealTotalOriginalPrice'\:'(?<DailyDealTotalOriginalPrice>.*?)','DailyDealTotalFinalPrice'\:'(?<DailyDealTotalFinalPrice>.*?)','DailyDealCount'\:'(?<DailyDealCount>.*?)'}]]></regex>
foreach (RegexStringList regexStringList in m_RegexListConfig.RegexStringList)
{
if (regexStringList.RegexName.ToLower() == "iphone home page")
{
Regex regex = new Regex(regexStringList.RegexString, RegexOptions.Singleline);
Match match = regex.Match(server.ResponseContent);
if (!string.IsNullOrEmpty(match.Groups["DailyDealCount"].Value))
{
server.DailyDealTotalFinalPrice = int.Parse(match.Groups["DailyDealCount"].Value);
}
}
}