It is difficult for me to remove the text in double quotes, especially those that spread over several lines:
$file=file_get_contents('test.html');
$replaced = preg_replace('/"(\n.)+?"/m','', $file);
I want to remove ALL text in double quotes (included). Some texts inside them will be spread over several lines.
I read that new lines may be \r\nand \n.
source
share