【发布时间】:2012-05-02 08:35:31
【问题描述】:
我有一个字符串,例如:
Dim str as string = xxxxxxxxxxxxxxxxxxxx£xxx£xxxx**£**xxxxxxxxxx
我想从* 中删除£,该* 始终位于末尾的某个位置(例如第11 位)。整个字符串很长,总是在大小变化,从一开始就无法计数。我也不能使用Replace,其他位置可能有我不想删除的相同字符。
解决方案:
Dim rst As String = str.Remove(str.Length - 11, 1)
【问题讨论】: