using RE = System.Text.RegularExpressions;
....
public void Run () {line s = @ "1112 2122 3132";
var mcol= RE.Regex.Matches(s,"<td>(\\d+)</td><td>(\\d+)</td>"); var d = new Dictionary<int, int>(); foreach(RE.Match match in mcol) d.Add(Int32.Parse(match.Groups[1].Value), Int32.Parse(match.Groups[2].Value)); foreach (var key in d.Keys) System.Console.WriteLine(" {0}={1}", key, d[key]);
}
source share