提取指定两个字符之间的字符串,
在asp页面中若干个字符串
$aaaa$
asfafafdasfasdfadfasfdad
$bbbb$
asfasdfasfasfasfafaf
$ssss$
要提取$间的字符串 变成
aaaa
bbbb
ssss
如何实现
------解决方案-------------------- <%
dim str,i
Dim reg,Matches
Set reg = new RegExp
reg.Pattern = "\$(.*?)\$ "
reg.Multiline = true
reg.Global = true
str= "$aaaa$asfafafdasfasdfadfasfdad$bbbb$asfasdfasfasfasfafaf$ssss$ "
Set Matches = reg.Execute(str)
For i = 0 to Matches.Count -1
Response.Write ( Matches(i).SubMatches(0) & " <BR> ")
Next
%>