找回密码
 加入
搜索
查看: 1725|回复: 2

[IE类操作] [已解决]球一个正则表达式

[复制链接]
发表于 2010-10-9 08:04:27 | 显示全部楼层 |阅读模式
本帖最后由 qq3911909 于 2010-10-10 00:28 编辑

比如 http://www.skycn.com/down.php?ur ... 82/down/mbox001.zip
有时候这个网址有可能是http://202.109.143.228:82/down/mbox001.zip这样的...

我想用正则提取这网址中的mbox001.zip
$sText = 'http://www.52z.com/default.html'

MsgBox(0, '', StringRegExpReplace($sText, 'http:.*/', '')

评分

参与人数 1金钱 -10 收起 理由
afan -10 错别字

查看全部评分

 楼主| 发表于 2010-10-9 08:11:38 | 显示全部楼层
$sText = 'http://www.52z.com/default.html'

MsgBox(0, '', StringRegExpReplace($sText, 'http:.*/', '')
自己找到了...
发表于 2010-10-9 09:07:58 | 显示全部楼层
自己丰衣足食,佩服楼主。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-2 23:31 , Processed in 0.092895 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表