<script>
strHTML= " <table> </table> 323232fdfffdsfsdf [color=red]<table border=0 cellpadding=0 cellspacing=0 id=Tbs rules=rows> 然后里面有好多的 tr td 最后是 </table> [/color]fhdsfhjdsflsdfjdslflfdsfl <table> <fdfhfd </table> "
var r=strHTML.match(/ <table\s*border=0\s*cellpadding=0\s*cellspacing=0\s*id=Tbs.*? <\/table> /gi)
alert(r)
</script>
strHTML= " <table> </table> 323232fdfffdsfsdf [color=red]<table border=0 cellpadding=0 cellspacing=0 id=Tbs rules=rows> 然后里面有好多的 tr td 最后是 </table> [/color]fhdsfhjdsflsdfjdslflfdsfl <table> <fdfhfd </table> "
var r=strHTML.match(/ <table\s*border=0\s*cellpadding=0\s*cellspacing=0\s*id=Tbs.*? <\/table> /gi)
alert(r)
</script>