string text1 = this.TextBox1.Text.Trim();
MatchCollection collection1 = new Regex("<img.+?>", RegexOptions.IgnoreCase).Matches(text1);
string text2 = "";
foreach (Match match1 in collection1)
{
text2 = this.GetHttp(match1.Value);
this.DownloadFile(text2);
}
public string GetHttp(string str)
{
Match match1 = new Regex("http://.+?/"", RegexOptions.IgnoreCase).Match(str);
return match1.Value.Substring(0, match1.Value.Length - 1);
}