我想从字符串中删除逗号前的第一个值
string = (00526,258,2562,2552)
我想要输出
String = (258,2562,2552)
答案 0 :(得分:1)
dim str = "(00526,258,2562,2552)"
dim st = str.remove(1, str.indexof(","))
st结果:(258,2562,2552) 我写了remove 1因为你有括号, 如果适合您,别忘了将其标记为答案:)
答案 1 :(得分:0)
有很多方法可以做到这一点...这里是
Dim someString As String = "(00526,258,2562,2552)"
someString = "(" & String.Join(",", someString.Trim("()".ToCharArray).Split(",".ToCharArray).Skip(1).ToArray()) & ")"
Debug.Print(someString)