asp 正则表达式

'这里用的是正则式
Set objRegExp = New Regexp   '建立对象
objRegExp.IgnoreCase = True    '大小写忽略
objRegExp.Global = True          '全局为真
objRegExp.Pattern = "http://.+?"   '匹配字段
set mm=objRegExp.Execute(str)    '执行查找,str为输入参数
For Each Match in mm      '进入循环
    Response.write(Match.Value)   '输出url地址
next
posted @ 2010-08-06 15:33  与时俱进  阅读(204)  评论(0编辑  收藏  举报
友情链接:同里老宅院民居客栈