方法1、http://www.foxtable.com/webhelp/topics/1338.htmDim str As String = "9【长度】*3【宽度】"
Dim idx1 As Integer = str.IndexOf("【")
Do While idx1 > -1
Dim idx2 As Integer = str.IndexOf("】", idx1)
If idx2 > -1 Then
str = str.Substring(0, idx1) & str.Substring( idx2 + 1)
End If
idx1 = str.IndexOf("【")
Loop
Output.Show(str)
2、
Dim pattern As String = "【\w+(?=】)】"
Dim txt = "9【长度】*3【宽度】"
Dim str = System.Text.RegularExpressions.Regex.Replace(txt , pattern , "")
Output.Show(str)