| |
Sign In
List<string> lst = new List<string>();foreach(Match m in Regex.Matches(this.txtInput.Text, @"\w+\.\w+", RegexOptions.IgnoreCase)) lst.Add(m.Groups[0].Captures[0].Value);var results = (from l in lst group l by l into g select new {Ref = g.Key, Total = g.Count()}).OrderByDescending(z => z.Total).Take(10);foreach(var v in results) this.txtOutput.Text += v.Ref + "\t" + v.Total + "\r\n";
Remember Me