using System; using System.Net; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { var ResultRegex = new Regex(@"of about ([\d,]*?) for"); for (int i = 1; i < 50; ++i) { string Term = "D" + "".PadRight(i, 'I') + "VE"; using (var WC = new WebClient()) { var Results = WC.DownloadString("http://www.google.com/search?q=" + Term); Console.WriteLine("{0}\t{1}", i, ResultRegex.Match(Results).Groups[1]); } } } } }