System.Net.WebClient wc = new System.Net.WebClient();
string s = wc.DownloadString(TextBox1.Text);
Regex regxURL = new Regex("http(s)?://([\\w+?\\.\\w+])+([a-zA-Z0-9\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)_\\-\\=\\+\\\\\\/\\?\\.\\:\\;\\'\\,]*)?", RegexOptions.IgnoreCase);
foreach (Match m in regxURL.Matches(s)) {
//ListBox1.Items.Add(m.Value)
arrayPage.Add(m.Value);
}
Regex regxIMG = new Regex("<img.+?src=[\\\"'](.+?)[\\\"'].+?>");
foreach (Match m in regxIMG.Matches(s)) {
//ListBox1.Items.Add(m.Groups(1).Value)