16,556
社区成员
发帖
与我相关
我的任务
分享
Dim Result As String = yourStr
For i As Integer = 0 To yourStr.Length
i = Result.IndexOf(":")
If i <> -1 Then
Result = Result.Replace(Result.Substring(i - 8, 9), "")
Else
Exit For
End If
Next
Dim str as String = "你那一堆"
Dim reg As Regex = New Regex("(\s+[\da-f]{2})+")
For Each m As Match In reg.Matches(str)
Console.WriteLine(m.Value)
Next
Dim yourStr as String = "你那一堆"
Dim Result as String = Regex.Replace(yourStr,"(?m:^)(?i)[\da-f]+:","")