-- 作者:有点甜
-- 发布时间:2017/9/8 13:17:00
--
Dim str As String = "IISJ-SP27.5X19.8-L275E" Dim reg As new System.Text.RegularExpressions.Regex("IIS|II|(?<=-)[SP]+?(?=[0-9.]+)|[0-9.]+") Dim mc As object = reg.Matches(str) For i As Integer = 0 To mc.count-1 msgbox(mc(i).value) Next
msgbox(mc(1).value)
|