Tim*_*udt 4 vb.net string split
net 2.0并需要拆分字符串的最后一个/标记.目前我有一个代码,说明Dim test As String = "Software\Microsoft\Windows\Welcome"
并需要一个代码,将Software\Microsoft\Windows\Welcome分成两个单独的部分,所以我将软件\ Microsoft\Windows和欢迎作为新字符串.我只能找到将其他部分从开头分开的东西
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)`
Run Code Online (Sandbox Code Playgroud)
shf*_*301 12
Dim whole As String = "Software/Microsoft/Windows/Run"
Dim firstpart As String = whole.Substring(0, whole.LastIndexOf("/"))
Dim lastpart As String = whole.Substring(whole.LastIndexOf("/") + 1)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16147 次 |
最近记录: |