<SCRIPT>
var str="href='../P0000010101023231.pdf'批量替换成 href='t00010101013443_31212.htm'批量替换成";
alert(str);
str=str.replace(/href=(\'|\")(\.{2}\/)(\w+\.pdf)\1/ig,"href=$1$3$1");
str=str.replace(/href=(\'|\")(\w+\.htm)\1/ig,"href=$101\/$2$1");
alert(str);
</SCRIPT>
var str="href='../P0000010101023231.pdf'批量替换成 href='t00010101013443_31212.htm'批量替换成";
alert(str);
str=str.replace(/href=(\'|\")(\.{2}\/)(\w+\.pdf)\1/ig,"href=$1$3$1");
str=str.replace(/href=(\'|\")(\w+\.htm)\1/ig,"href=$101\/$2$1");
alert(str);
</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货