我想剪断一个字符串并获取某个单词之前的内容和某个单词之后的内容。
例子:
Dim string As String = "Dr. John Smith 123 Main Street 12345"
Dim cut_at As String = "Smith"
Dim string_before, string_after As String
--cutting code here--
string_before = "Dr. John "
string_after = " 123 Main Street 12345"
我将如何在 vb.net 中执行此操作?