net 2.0 并且需要拆分字符串的最后一个 / 标记。目前我有一个代码,Dim test As String = "Software\Microsoft\Windows\Welcome"
需要一个代码,将 Software\Microsoft\Windows\Welcome 拆分为最后两个单独的部分,所以我将 Software\Microsoft\Windows 和 Welcome 作为新字符串。我只能找到将开始与其余部分分开的东西,例如
Dim whole As String = "Software/Microsoft/Windows/Run"
Dim firstpart As String = whole.Substring(0, whole.IndexOf("/"))
Dim lastpart As String = whole.Substring(whole.IndexOf("/") + 1)`