当前位置: 代码迷 >> ASP.NET >> asp.net截取字符串解决方案
  详细解决方案

asp.net截取字符串解决方案

热度:9005   发布时间:2013-02-25 00:00:00.0
asp.net截取字符串
例如
string str="1.1.xlsx";
我要截取xlsx,请大神帮助

------解决方案--------------------------------------------------------
str = str.Substring(str.LastIndexOf('.')+1, str.Length - str.LastIndexOf('.')-1);
  相关解决方案