代码如下:
textarea id="txt"
table border=1 width="20%"
trthtitle/ththtitle2/th/tr
tr rs="{id:'section006'}"tddata1/tdtddata2 /td
/tr
tr tddata1/tdtddata2/td/tr
/table
/textarea
script
var str = document.getElementById('txt').value;
alert(str);
/script
/tr[^]*[sS]*?/tr/gi, 猜你喜欢