Create a PHP file with the content:

<?php

$filecontent = file_get_contents(‘index.html’);
$filecontent = preg_replace(‘/ .*”.*”/’, ”, $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.