当前位置: 代码迷 >> ASP >> js正则如何转换成vb的呢
  详细解决方案

js正则如何转换成vb的呢

热度:200   发布时间:2012-03-28 15:40:03.0
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
%>
  相关解决方案