Are you sure that every line of the table has that exact format? I think it might be easier to look for <table* at the beginning and </table* at the end.
Code:
on *SOCKREAD:*:{
var %s
sockread %s
tokenize 32 %s
if (<table* iswm $1-) set %intable 1
if (%intable) {
;Do something with table data here
echo -s > $nohtml($1-)
}
if (</table* iswm $1-) unset %intable
}