string content= this.FCKeditor1.Value; string content1 = content; string imgpath = ""; List<String> imgs = new List<string>(); while (true) { int o = content1.IndexOf("axxx/");//这个是你那个axxx if (o == -1) break; int j = content1.IndexOf("xxxa");这个是 xxxa if (j == -1) break; imgpath = imgpath + content1.Substring(o, j - o - 1 -1); content1 = content1.Substring(j - 1); }能看懂吗??这个是循环截取的 在最上面的加上using System.Collections.Generic; 如果不想循环的话 就直接把那个while 去掉 ok