var str=' <a href="http://202.108.23.172/m?ct=134217728&tn=baidusg,喜欢你 &word=mp3,http://jitafan.com/mp3/BEYOND/YmUz.mp3,,'
+'[%CF%B2%BB%B6%C4%E3]&si=%CF%B2%BB%B6%C4%E3;;beyond;;31806;;31806&lm=16777216" title="请点击左键!来源网址: http://jitafan.com '
+' 请参照百度权利声明使用" onclick="return ow(event,this)" target="_blank"> <font style=color:#e10900>喜欢你 </font> </a> </td>'
+'<td> <a href="http://mp3.baidu.com/singerlist/beyond.html" target="_blank">beyond </a> <a href="http://mp3.baidu.co'
+'m/singerlist/.html" target="_blank"> </a> '
var Reg=/<a\s+href=['"]([^'"]+)['"]/gi
while(m=Reg.exec(str))
alert(m[1])
+'[%CF%B2%BB%B6%C4%E3]&si=%CF%B2%BB%B6%C4%E3;;beyond;;31806;;31806&lm=16777216" title="请点击左键!来源网址: http://jitafan.com '
+' 请参照百度权利声明使用" onclick="return ow(event,this)" target="_blank"> <font style=color:#e10900>喜欢你 </font> </a> </td>'
+'<td> <a href="http://mp3.baidu.com/singerlist/beyond.html" target="_blank">beyond </a> <a href="http://mp3.baidu.co'
+'m/singerlist/.html" target="_blank"> </a> '
var Reg=/<a\s+href=['"]([^'"]+)['"]/gi
while(m=Reg.exec(str))
alert(m[1])
解决方案 »
- JSP网页内存泄露问题
- 请教追加table行的问题。
- 关于一个web调色板的代码解读
- apply函数绑定于prototype的回调函数问题?
- 菜鸟求助!!!急急急
- 我想在网站上放一些三维动画,让用户观赏,但不能下载,该怎么做?100分不够再加
- 新手问下有人玩过extjs4.0.7的desktop类桌面系统吗?
- 怎样的动态的添加表格的新行新列用脚本?
- 有没有像QQ那样在顶端就自动隐藏的窗口(完全像QQ那种效果)
- javascript的包含文件怎么写?
- 急问:做一个考试系统如何实现主控端控制
- 元素.attachEvent('onfocus',new function(){});执行顺序问题,高手来看看
$3为所需要的。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> New Document </title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript">
window.onload = function(){
var strHTML = document.getElementById("bodyHTML").value;
var re = /(<a.{1,}<\/a>)|(<img.{1,}\">)/g;
strHTML.replace(re ,function(s){
alert(s);
});
};
</script>
</head>
<body>
<textarea id="bodyHTML" style="width:800px;height:500px;" readonly>
<tr>
<td class=tdn>1 </td>
<td class=d> <a href="http://202.108.23.172/m?ct=134217728&tn=baidusg,喜欢你 &word=mp3,http://jitafan.com/mp3/BEYOND/YmUz.mp3,,[%CF%B2%BB%B6%C4% E3]&si=%CF%B2%BB%B6%C4%E3;;beyond;;31806;;31806&lm=16777216" title ="请点击左键!来源网址: http://jitafan.com 请参照百度权利声明使用" onclick="return ow (event,this)" target="_blank"> <font style=color:#e10900>喜欢你 </font> </a> </td>
<td> <a href="http://mp3.baidu.com/singerlist/beyond.html" target="_blank">beyond </a> <a href="http://mp3.baidu.com/singerlist/.html" target="_blank"> </a> <a href="http://mp3.baidu.com/singerlist/.html" target="_blank"> </a> </td>
<td class=al> <a href="http://mp3.baidu.com/albumlist/beyond;;;;;;%C3%D8%C3%DC%BE%AF %B2%EC.html" target="_blank">秘密警察 </a> </td>
<td> <a href="http://box.zhangmen.baidu.com/m?gate=1&ct=134217728&tn =baidumt,喜欢你 &word=mp3,http://jitafan.com/mp3/BEYOND/YmUz.mp3,,[%CF %B2%BB%B6%C4%E3]&si=%CF%B2%BB%B6%C4%E3;;beyond;;31806;;31806&lm=16777216" onclick ="return ot(event,this,'31806')">试听 </a> </td>
<td> <a href="http://mp3.baidu.com/m?tn=baidump3lyric&word=beyond+%CF%B2% BB%B6%C4%E3&ct=150994944&lm=-1&lf=3" target="_blank">歌词 </a> </td>
<td> </td>
<td>10.6 M </td>
<td>mp3 </td>
<td class=spd> <img src="http://img.baidu.com/img/mp3/d9.gif"> </td>
</tr> <tr>
里的 <td> <a href="http://mp3.baidu.com/m?tn=baidump3lyric&word=beyond+%CF%B2% BB%B6%C4%E3&ct=150994944&lm=-1&lf=3" target="_blank">歌词 </a> </td>
</textarea>
</body>
</html>