问题:
如: asdasdfasdf asdfasdf 12sdfsdf asdfa 截取后为:
asdasdfasdf asdfasdf 12sdfsdf 为第一段
asdfa 为第二段
解答:
Dim s As String = "asdasdfasdf asdfasdf 12sdfsdf asdfa"
Dim arr() As String = Split(s, " ")
Dim 前部分 = String.Join(" ", arr, 0, 3)
Dim 后部分 = String.Join(" ", arr, 3, arr.Length - 3)