可能重复:
Python:使用多个分隔符拆分字符串
我可以在 Python 中做类似的事情吗?
VB.net 中的拆分方法:
Dim line As String = "Tech ID: xxxxxxxxxx Name: DOE, JOHN Account #: xxxxxxxx"
Dim separators() As String = {"Tech ID:", "Name:", "Account #:"}
Dim result() As String
result = line.Split(separators, StringSplitOptions.RemoveEmptyEntries)