ftp://aaa:bbb@rainc.vicp.net/
我如何能取出aaa和BBB还有rainc.vicp.net
怎么样查找字符//??
------解决方案--------------------------------------------------------
string temp= "ftp://aaa:bbb@rainc.vicp.net/ ";
if(temp.IndexOf( "aaa ")> -1)
{
Response.Write( "包含aaa ");
}
else if(temp.IndexOf( "bbb ")> -1)
{
Response.Write( "包含bbb ");
}
else if(temp.IndexOf( "rainc.vicp.net ")> -1)
{
Response.Write( "rainc.vicp.net ");
}