HTMLへの解析中にmatchcollectionを使用しています。しかし、このソリューションには時間がかかり、失敗することもあります。matchcollection タイムアウトを設定すれば、この問題は解決すると考えています。matchcollection のタイムアウトを設定するにはどうすればよいですか? (フレームワーク 4.0)
anchorPattern[0]="<div.*?class=\"news\">.*?<div.*?class=\".*?date.*?\">(?<date>.*?)?</div>.*?<a.*?href=\"(?<link>.*?)\".*?>(?<title>.*?)?</a>.*?<(span.*?class=\".*?desc.*?\">(?<spot>.*?)?</span>)?"
MatchCollection mIcerik = Regex.Matches(html, anchorPattern[i], RegexOptions.Compiled);
if (mIcerik.Count > 0)
ListDegree.Add(i,mIcerik.Count);