How could I replace via preg_replace a all the tables on a string? That means also the tables nested on other tables. Currently I'm using this code:
$pattern = '/(<table[^>]*>)(.*?)(<\/table>)/is';
but is not "cleaning" or replacing all the tables.
Anybody has an idea?