Codice PHP:
preg_match('#<table.*?</table>#s'$pagina$match);