首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

js正则如何转换成vb的呢

2012-03-28 
js正则怎么转换成vb的呢?varstr fghjj spanid totalUSD aa123456 /span ggg alert(str.match(/

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
%>

热点排行