string u = "http://www.baidu.com/";int f = u.IndexOf("//")+2; u= u.Substring(f,u.IndexOf("/",f)-f);string[] t = u.Split(',');f = t.Length;u = t[f-2]+"."+t[f-1]; 域名u = t[f-1]; 类型