{adsafi**ClRf**udsaf**ClRf**adsf....EOF**ClRf** }
从上面的字符串中如何替换EOF和}
之间的string.empty输出:
{adsafi**ClRf**udsaf**ClRf**adsf....EOF }**
答案 0 :(得分:1)
int lastIndex = input.LastIndexOf("something");
string result = input.Substring(lastIndex);
// or
string result = input.Substring(lastIndex, length);