7,785
社区成员




Private Sub Form_Load()
Dim strData$
Dim reg As Object
Dim matchs As Object, match As Object
strData = "kaghibaubebvk"
Set reg = CreateObject("vbscript.regexp")
reg.Global = True
reg.IgnoreCase = True
reg.Pattern = "a.*?b"
Set matchs = reg.Execute(strData)
For Each match In matchs
Debug.Print match
Next
End Sub
a.*?b