void GetImageUrlsComplete(string sourceHtml, string baseUrl) { string regexString = RegexStringLib.GetFileUrlRegexString("jpg|jpeg|png|ico|bmp|gif"); List <string> imageUrls = TextAnalyze.GetUrlList(sourceHtml, regexString, baseUrl); if (imageUrls.Count > 0) { this.downloadUrlList = new List <string>(); foreach (string url in imageUrls) { string fullUrl = Utils.CompleteRelativeUrl(baseUrl, url); this.downloadUrlList.Add(fullUrl); tbxMessage.Text += string.Format("{1}{0}", Environment.NewLine, fullUrl); } MessageBox.Show(string.Format("{0} images got!", imageUrls.Count)); } else { tbxMessage.Text = "no regexed"; } }