28,406
社区成员
发帖
与我相关
我的任务
分享Sub LoadSrc(str)
set reg = new Regexp
reg.pattern="(.*?src=('|"")?)(.*?)('| |"")(.*?)/?>(.*?)"
reg.global=false
reg.ignorecase=True
str = reg.replace(str,"$3<br>")
stra = split(str,"<br>")
'response.write str
for i=0 to ubound(stra)-1
response.write stra(i)&"<br>"
next
End Sub
str = "<embed src='http://www.youtube.com/v/srU5MOyMvFU&hl=en&fs=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'> </embed>"
Call LoadSrc(str)