摘要: 简单获取字符串中间值。暂时只知道这种简单的方法。菜鸟方法, 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 } 阅读全文
posted @ 2011-06-20 14:44 Red Cat 阅读(516) 评论(0) 推荐(0) 编辑

Copyright © 2022 LyShark Powered by .NET 6 on Kubernetes
Theme - LyTheme 1.0