public static string Auto(string str)
//========================//
// www.
// http://
// ftp://
//
[email protected] // mms://
//========================//
{
Reg = new Regex("([^]=>])(http://*[*A-Za*-z0-9./=?%-&_~`@':+!]+)");
str = Reg.Replace(str,"$1");
Reg = new Regex("^(http://*[*A-Za*-z0-9./=?%-&_~`@':+!]+)");
str = Reg.Replace(str,"");
Reg = new Regex("(http://*[*A-Za*-z0-9./=?%-&_~`@':+!]+)$");
str = Reg.Replace(str,"");
Reg = new Regex("([^]=>])(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)");
str = Reg.Replace(str,"$1");
Reg = new Regex("^(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)");
str = Reg.Replace(str,"");
Reg = new Regex("(ftp://[A-Za-z0-9./=?%-&_~`@':+!]+)$");
str = Reg.Replace(str,"");
Reg = new Regex("([^]=>])(mms://[A-Za-z0-9./=?%-&_~`@':+!]+)");
str = Reg.Replace(str,"$1");
Reg = new Regex("^(mms://[A-Za-z0-9./=?%-&_~`@':+!]+)");