摘要:
简单获取字符串中间值。暂时只知道这种简单的方法。菜鸟方法, 1 public string substringone(string firstkey, string lastkey, string str) 2 { 3 int startIndex = str.IndexOf(firstkey); 4 int lastIndex = str.IndexOf(lastkey); 5 string newstr = str.Substring(startIndex, lastIndex); 6 return substringlast(firstkey, lastkey, newstr); 7 } 阅读全文