<script language=vbscript> dim str str="<img src=""dsafdsafasfd"" ...>" msgbox str Dim re, rv Set re = new RegExp re.Pattern = "\<img(.+?)src\=([^\s]+?)(\s|\>)" re.Global = True re.IgnoreCase = false re.MultiLine = false Set rv = re.Execute(str) msgbox rv.count For Each Match in rv ' 遍历匹配集合。 msgbox Match.SubMatches(1) Next</script>
dim str
str="<img src=""dsafdsafasfd"" ...>"
msgbox str
Dim re, rv
Set re = new RegExp
re.Pattern = "\<img(.+?)src\=([^\s]+?)(\s|\>)"
re.Global = True
re.IgnoreCase = false
re.MultiLine = false
Set rv = re.Execute(str)
msgbox rv.count
For Each Match in rv ' 遍历匹配集合。
msgbox Match.SubMatches(1)
Next</script>
另: 楼主在说天书吗? 我看不懂...