//匹配title
string reg="<td class=\"odd\">(?<Title>[\\s\\S]).*?)<td>";
//匹配tiitle與value
//string reg ="<td class=\"odd\">(?<Title>[\\s\\S]).*?)<td>([^<])<td class=\"value\">(?<Value>[\\s\\S].*?)</td>";
//以此類推
Regex r=new Regex(reg,RegexOptions.IgnoreCase | RegexOptions.Singleline);
MatchCollerction m=r.Matchs(str);
for(int i =0 ; i<m.Count;i++)
{
string title =m[i].Groups["Title"].Value;
}
摘自 凡娃軟件