参考
Dim str As String = "D18-45-K18-01.1"Dim ary = str.split("-")msgbox(ary(0) & "-" & ary(1))msgbox(ary(0) & "-" & ary(1) & "-" & ary(2))