有一些不同的方式.
普通字符串方法:
Dim left As Integer = str.IndexOf('(')
Dim right As Integer= str.IndexOf(')')
Dim content As String = str.Substring(left + 1, right - left - 1)
Run Code Online (Sandbox Code Playgroud)
正则表达式:
Dim content As String = Regex.Match(str, "\((.+?)\)").Groups[1].Value
Run Code Online (Sandbox Code Playgroud)