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.

on *SOCKREAD:*:{
  var %s
  sockread %s
  tokenize 32 %s

  if (&lt;table* iswm $1-) set %intable 1
  if (%intable) {
    ;Do something with table data here
    echo -s &gt; $nohtml($1-)
  if (&lt;/table* iswm $1-) unset %intable

(untested code)