String MyWord = "../aaa/bbb/ccc/..这里是不确定的字符串,请不要用数位的方法../eee/1.aspx"; String Ret = System.IO.Path.GetFileName(MyWord);