a="432uior23uio3r2$$0001 jkfdsjkjk jkj9j8$$0003 j3iuo43jio$$0004 kkjjkljkljlk$$0006"
str=split(a,"$$")
dim str1(100)
for i=1 to ubound(str)
str1(i)=mid(str(i),1,4)
next
for j=1 to ubound(str)
response.write str1(j)
next
Dim ss, re, rv
ss = "432uior23uio3r2$$0001 jkfdsjkjk jkj9j8$$0003 j3iuo43jio$$0004 kkjjkljkljlk$$0006"
Set re = New RegExp
re.Pattern = "\$\$[0-9]{4}"
re.Global = True
re.IgnoreCase = True
re.MultiLine = True
Set Matches = re.Execute(ss) '执行搜索。
For Each Match in Matches '遍历匹配集合。
RetStr = RetStr & "Match found at position "
RetStr = RetStr & Match.FirstIndex & ". Match Value is '"
RetStr = RetStr & Match.Value & "'." & "<BR>"
Next
response.write RetStr