php,直接复制可运行。
<?php
var_dump(preg_replace('/>([\s]*([\w-]+)[\s])*</','','<td align="center" style="width:20%">
2011-01-28
</td>
<td style="width:13%">
星期五
</td>
<td align="center" style="width:30%">
<span id="MyGridView_ctl02_lblHaoTest">100</span>
</td>
<td align="center" style="width:30%">
<span id="MyGridView_ctl02_lblHao">200</span>
</td>'))
function abc(){var patt1=new RegExp("e")
var sd=(patt1.test("The best things in life are free"))
var obj=document.getElementById("td")
document.getElementById("td").value=sd
alert(obj)
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)