var resp = xmlhttp.responseText; *!*console.log(resp)*/!* if(res = resp.match(/^<TABLE bordercolor="bar" border=0.+<\/TABLE>$/) )