ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 Excel Home精品图文教程库
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
300集Office 2010微视频教程 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 1723|回复: 9

[求助] 请指点下 我想从以下的文本中 将这样的网址提取

[复制链接]

TA的精华主题

TA的得分主题

发表于 2010-5-11 18:16 | 显示全部楼层 |阅读模式
高手 请指点下 我想从以下的文本中 将这样的网址 提取出来 另存个文本文件。即只要带jpg的链接地址提取出来,不知道用excel可否实现 望高手指点 QQ20850011 ,或回复 本人在线等,着急 谢谢。                           





                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8865&name=Yuka Kyomoto&picname=Yuka Kyomoto_09" target="_blank"><img src="http://www.idolhot.com/thumb/12478979741.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8865&name=Yuka Kyomoto&picname=Yuka Kyomoto_09" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_09                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      893                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8864&name=Yuka Kyomoto&picname=Yuka Kyomoto_08" target="_blank"><img src="http://www.idolhot.com/thumb/12478979730.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8864&name=Yuka Kyomoto&picname=Yuka Kyomoto_08" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_08                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1298                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8863&name=Yuka Kyomoto&picname=Yuka Kyomoto_07" target="_blank"><img src="http://www.idolhot.com/thumb/12478977136.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8863&name=Yuka Kyomoto&picname=Yuka Kyomoto_07" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_07                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1752                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8862&name=Yuka Kyomoto&picname=Yuka Kyomoto_06" target="_blank"><img src="http://www.idolhot.com/thumb/12478977125.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8862&name=Yuka Kyomoto&picname=Yuka Kyomoto_06" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_06                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      4225                  </span></th>

                </tr>

            </table>          </th>

          </tr><tr>          <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8861&name=Yuka Kyomoto&picname=Yuka Kyomoto_05" target="_blank"><img src="http://www.idolhot.com/thumb/12478977124.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8861&name=Yuka Kyomoto&picname=Yuka Kyomoto_05" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_05                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      2049                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8860&name=Yuka Kyomoto&picname=Yuka Kyomoto_04" target="_blank"><img src="http://www.idolhot.com/thumb/12478977123.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8860&name=Yuka Kyomoto&picname=Yuka Kyomoto_04" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_04                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1904                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8859&name=Yuka Kyomoto&picname=Yuka Kyomoto_03" target="_blank"><img src="http://www.idolhot.com/thumb/12478977122.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8859&name=Yuka Kyomoto&picname=Yuka Kyomoto_03" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_03                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      3653                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8858&name=Yuka Kyomoto&picname=Yuka Kyomoto_02" target="_blank"><img src="http://www.idolhot.com/thumb/12478977121.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8858&name=Yuka Kyomoto&picname=Yuka Kyomoto_02" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_02                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      2596                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8857&name=Yuka Kyomoto&picname=Yuka Kyomoto_01" target="_blank"><img src="http://www.idolhot.com/thumb/12478977120.jpg" alt="Yuka Kyomoto"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8857&name=Yuka Kyomoto&picname=Yuka Kyomoto_01" class="style20" target="_blank"><font color="#0000CC">

                    Yuka Kyomoto_01                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1025                  </span></th>

                </tr>

            </table>          </th>

          </tr><tr>          <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8856&name=Kim Ha Yul&picname=Kim Ha Yul_10" target="_blank"><img src="http://www.idolhot.com/thumb/12478967669.jpg" alt="Kim Ha Yul"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8856&name=Kim Ha Yul&picname=Kim Ha Yul_10" class="style20" target="_blank"><font color="#0000CC">
                                
                    Kim Ha Yul_10                    </font></a>                  </th>                                
                                
                </tr>                                
                                
                <tr>                                
                                0
                  <th scope="col"><span class="style14">View :                                 
                                
                      2042                  </span></th>                                
                                
                </tr>                                
                                
            </table>          </th>                                
                                
                    <th width="129" height="130" align="center" valign="top" scope="col">                                         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8855&name=Kim Ha Yul&picname=Kim Ha Yul_09" target="_blank"><img src="http://www.idolhot.com/thumb/12478967658.jpg" alt="Kim Ha Yul"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8855&name=Kim Ha Yul&picname=Kim Ha Yul_09" class="style20" target="_blank"><font color="#0000CC">

                    Kim Ha Yul_09                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1078                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

                  <th width="101" height="93" bgcolor="#000000" scope="col"><a href="http://www.idolhot.com/showpic.php?picshow=8854&name=Kim Ha Yul&picname=Kim Ha Yul_08" target="_blank"><img src="http://www.idolhot.com/thumb/12478967657.jpg" alt="Kim Ha Yul"width="100" height="80" border="0" /></a></th>

                </tr>

                <tr>

                  <th scope="col">

                    <a href="http://www.idolhot.com/showpic.php?picshow=8854&name=Kim Ha Yul&picname=Kim Ha Yul_08" class="style20" target="_blank"><font color="#0000CC">

                    Kim Ha Yul_08                    </font></a>                  </th>

                </tr>

                <tr>

                  <th scope="col"><span class="style14">View :

                      1827                  </span></th>

                </tr>

            </table>          </th>

                    <th width="129" height="130" align="center" valign="top" scope="col">         

            <table width="100" border="0" align="center" cellspacing="0">

                <tr>

TA的精华主题

TA的得分主题

发表于 2010-5-11 18:40 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
http[^>]+jpg

正则?

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-5-11 18:42 | 显示全部楼层
嗯 对 就是想把带jpg的地址提取出来,如果不行 就jpg前面的数字文件名 也可以

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-5-11 18:44 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
次序不用考虑 就能提取出来 一行一个 就行

TA的精华主题

TA的得分主题

发表于 2010-5-11 19:45 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
呵呵 我只能用笨办法提取,然后分列。。。

不知道楼主的数据量大不大。

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-5-11 20:54 | 显示全部楼层
大啊 手动不行 太辛苦了 感谢大家啊 行行好 来个高手 告诉下 谢谢

TA的精华主题

TA的得分主题

 楼主| 发表于 2010-5-12 09:53 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2010-5-12 10:35 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2010-5-12 11:09 | 显示全部楼层
  1. @echo off
  2. for /f "tokens=1,2,3,4 delims=<>" %%a in ('findstr "http[^>][^>]*jpg" aa.txt') do (
  3.    for /f "tokens=1,2,3 delims== " %%i in ("%%d") do echo %%k>>bb.txt
  4. )
  5. pause
复制代码
来个批处理版的吧。

aa.rar

1019 Bytes, 下载次数: 12

TA的精华主题

TA的得分主题

发表于 2010-5-12 11:31 | 显示全部楼层
次序不用考虑 就能提取出来 一行一个
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

关闭

最新热点上一条 /1 下一条

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-4-25 16:49 , Processed in 0.038498 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

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