能否获取倒数第二个指定字符的位置? 截取

 

实例:


string mystring = "012.345.678.9";
int i = mystring.LastIndexOf('.', (mystring.LastIndexOf(".") - 1));

posted @ 2013-07-09 10:32  程序猿网友666  阅读(2948)  评论(0编辑  收藏  举报