private Hashtable GetImg(string html)
{
MatchCollection mm = Regex.Matches(html, @"((http|https|ftp|rtsp|mms):(|){1}(([A-Za-z0-9_-])+[.]){1,}(net|com|cn|org|cc|tv|[0-9]{1,3})(/S*//)((/S)+[.]{1}(bmp|jpg|gif)))", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
int i = 0;
bool repeat;
Hashtable ht = new Hashtable();
foreach (Match ss in mm)
{
if (i == 0)
{
i++;
ht.Add(0, ss.ToString());
}
else
{
repeat = false;
foreach (DictionaryEntry de in ht)
{
if (ss.ToString().ToLower() == de.Value.ToString().ToLower())
{
repeat = true;
break;
}
}
if (repeat == false)
{
ht.Add(i, ss.ToString());
i++;
}
}
}
return ht;
}