文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>几个经常用到的字符串的截取

几个经常用到的字符串的截取

时间:2011-02-16  来源:卢青松


 


 

************************************************


 

string str="adcdef"; int indexStart = str.IndexOf("d");

int endIndex =str.IndexOf("e");

string toStr = str.SubString(indexStart,endIndex-indexStart);

c#截取字符串最后一个字符的问题!

str1.Substring(str1.LastIndexOf(",")+1)

相关阅读 更多 +
排行榜 更多 +
火箭炮小子无限金币版

火箭炮小子无限金币版

策略塔防 下载
家庭清洁大师

家庭清洁大师

休闲益智 下载
之了课堂

之了课堂

学习教育 下载