求一正则,从播放代码中提取视频地址?在线等!

wxiaol 2005-09-28 09:36:47
例如:数据库表字段中有这样一段代码

<EMBED src=/xie_shop/mov/200592593126309.mov width=300 height=300 type=audio/x-pn-realaudio-plugin console="Clip1" controls="IMAGEWINDOW,ControlPanel,StatusBar" autostart="true"></DIV></EMBED>


我想利用正则或是其他方法提取出来/xie_shop/mov/200592593126309.mov,这样的一个地址.

怎么实现??

高手请帮忙!

在线等,顶者有份相送@
...全文
224 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wxiaol 2005-09-28
  • 打赏
  • 举报
回复
thank you !

问题已经解决!非常感谢!结帖!
baiyunfei 2005-09-28
  • 打赏
  • 举报
回复
<%
dim objRegExp
Set objRegExp=new RegExp
objRegExp.IgnoreCase =true
objRegExp.Global=true

strContent="<EMBED src=/xie_shop/mov/200592593126309.mov width=300 height=300 type=audio/x-pn-realaudio-plugin console=""Clip1"" controls=""IMAGEWINDOW,ControlPanel,StatusBar"" autostart=""true""></DIV></EMBED>"

objRegExp.Pattern="<embed[^>]+?src=(\S+).*>"
objRegExp.Execute(strContent)
strContent= objRegExp.Replace(strContent,"$1")
response.write strContent
%>
gwc0744 2005-09-28
  • 打赏
  • 举报
回复
用一个软件可以实现。。详情请加我QQ:13642832
xinxinduyu 2005-09-28
  • 打赏
  • 举报
回复
不好意思,帮不了你
帮你顶~~~~

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧