当我卖东西的时候,我使用photobucket为我的ebay广告托管我的图像,所以我将hvd从photobucket复制到记事本中,我总是将<img>
标签包裹在photobucket中#&# 39; s <a>
标记,我必须遍历每一行并手动删除每个<a></a>
,其中26条线上的多个项目很快会等同于数百个&#34;突出显示并删除&#34 ;动作。
我已经搜索了结束标记</a>
,只是做了一个&#34;替换&#34;什么都没有,因此删除它,但由于图像文件名在每一行上不同,我无法理解删除的字符串如下例所示:
所以它基本上是锚标记的一部分,包括>
我需要能够大规模删除 - 任何帮助都将非常感谢!
<a href="http://s1297.photobucket.com/user/eye/media/Programmes/Yes%20joblot/DSC02424_zpslt9m0cuu.jpg.html" target="_blank"><img src="http://i1297.photobucket.com/albums/ag35/eye/Programmes/Yes%20joblot/DSC02424c_zpslt9m0cuu.jpg" border="0" alt=" photo DSC05653_zpslt9m0cuu.jpg"/></a>
<a href="http://s1297.photobucket.com/user/eye/media/Programmes/Yes%20joblot/DSC04444_zpspkgjw6vf.jpg.html" target="_blank"><img src="http://i1297.photobucket.com/albums/ag35/eye/Programmes/Yes%20joblot/DSC04444_zpspkgjw6vf.jpg" border="0" alt=" photo DSC05654_zpspkgjw6vf.jpg"/></a>
<a href="http://s1297.photobucket.com/user/eye/media/Programmes/Yes%20joblot/DSC05655_zpsxuev7czs.jpg.html" target="_blank"><img src="http://i1297.photobucket.com/albums/ag35/eye/Programmes/Yes%20joblot/DSC05655_zpsxuev7czs.jpg" border="0" alt=" photo DSC05655_zpsxuev7czs.jpg"/></a>
<a href="http://s1297.photobucket.com/user/eye/media/Programmes/Yes%20joblot/DSC06624_zpsifjidypy.jpg.html" target="_blank"><img src="http://i1297.photobucket.com/albums/ag35/eye/Programmes/Yes%20joblot/DSC06624_zpsifjidypy.jpg" border="0" alt=" photo DSC05656_zpsifjidypy.jpg"/></a>
<a href="http://s1297.photobucket.com/user/eye/media/Programmes/Yes%20joblot/DSC07777_zpsacyjrnnr.jpg.html" target="_blank"><img src="http://i1297.photobucket.com/albums/ag35/eye/Programmes/Yes%20joblot/DSC07777_zpsacyjrnnr.jpg" border="0" alt=" photo DSC05663_zpsacyjrnnr.jpg"/></a>
答案 0 :(得分:0)
<a href="[^"]+?" target="_blank">
会做你想要的,甚至更一般的事情:
<a href=[^>]+?>