<script language=javascript>
function showHB(str)
{
re=/id=(\d+)/ig
temp=str.match(re)
for(var i=0;i<temp.length;i++)
{
temp[i]=temp[i].replace(/[^\d]/g,"")
}
return temp;
}
s="[QUOTE ID=4][QUOTE ID=40]"
s1="[QUOTE ID=4]"
alert(showHB(s))
alert(showHB(s1))
</script>
function showHB(str)
{
re=/id=(\d+)/ig
temp=str.match(re)
for(var i=0;i<temp.length;i++)
{
temp[i]=temp[i].replace(/[^\d]/g,"")
}
return temp;
}
s="[QUOTE ID=4][QUOTE ID=40]"
s1="[QUOTE ID=4]"
alert(showHB(s))
alert(showHB(s1))
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货