日期:2014-05-17  浏览次数:20740 次

js正则怎么转换成vb的呢?
var   str= 'fghjj <span   id= "totalUSD "> aa123456 </span> ggg ';
alert(str.match(/ <(span)[^> ]*> (.+?) <\/\1> /)[2]);


------解决方案--------------------
<%
str= "fghjj <span id= " "totalUSD " "> aa123456 </span> ggg "
Set regEx = New RegExp
regEx.Pattern = " <(span)[^> ]*> (.+?) <\/\1> "
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute(str)
For Each Match in Matches
Response.Write Match.Value& " <br> " & vbCRLF
Next
%>