Create a PHP file with the content:
<?php
$filecontent = file_get_contents ( ‘report.html’ );
$filecontent = preg_replace ( ‘/(<(?!img)w+[^>]+)(style=”[^”]+”)([^>]*)(>)/’, ‘${1}${3}${4}’, $filecontent );
echo $filecontent;
?>
If you have access to your linux server’s terminal, run the the following command: php regex.php > new.html
If not, you can run the php file in browser and press Ctrl-U to view the source code, then copy the source code to the new html file.