Function RegExpTest(patrn, strng) Dim regEx, Match, Matches Set regEx = New RegExp regEx.Pattern = "("[^"]+")" regEx.IgnoreCase = True regEx.Global = True Set Matches = regEx.Execute("about(100,1,"字符串1","字符串2","字符串3")") For Each Match in Matches RetStr(i) = Match.Value i=i+1 Next RegExpTest = RetStr End Function 会匹配三个字符串,你取缔一个就可
Dim regEx, Match, Matches
Set regEx = New RegExp
regEx.Pattern = "("[^"]+")"
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute("about(100,1,"字符串1","字符串2","字符串3")")
For Each Match in Matches
RetStr(i) = Match.Value
i=i+1
Next
RegExpTest = RetStr
End Function
会匹配三个字符串,你取缔一个就可