|
|
楼主 |
发表于 2011-9-11 22:36:32
|
显示全部楼层
本帖最后由 leo198444 于 2011-9-11 22:43 编辑
我的具体想法是...
第一阶段以<div class="x-p-ext-block"和part00作为分隔符,然后包含分隔符进行删除
<div class="x-p-ext-block" style="margin-buttom: 5px"><div class="x-p-ext-title" style="width:1024px;">.part009.rar</div><div class="x-p-ext-img"><a href="http://photo.xuite.net/_pic/hannstar/1884112/69089575.jpg/redir"><img src="http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg" border="0"></a></div><div class="x-p-ext-desc" style="width: 1024px;"></div></div>
第二阶段以.rar和<img src="作为分隔符,然后包含分隔符进行删除
9.rar</div><div class="x-p-ext-img"><a href="http://photo.xuite.net/_pic/hannstar/1884112/69089575.jpg/redir"><img src="http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg" border="0"></a></div><div class="x-p-ext-desc" style="width: 1024px;"></div></div>
第三阶段以" border和</div></div>作为分隔符,然后包含分隔符进行删除
9http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg" border="0"></a></div><div class="x-p-ext-desc" style="width: 1024px;"></div></div>
第四阶段在每个行首插入这个字串StrCpy $download
StrCpy $download9 http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg
第五阶段把http替换为 'http
StrCpy $download9 'http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg
第六阶段把jpg替换为jpg'
StrCpy $download9 'http://3.share.photo.xuite.net/hannstar/13e42f7/1884112/69089575_x.jpg'
完成
虽然我有学程式,对一些变量函式有点基础
但是尝试批处理不知道怎么转义字符,也不懂怎样处理这么复杂的字串
请求帮忙 |
|