i am trying to remove everything in between html comments
<!--
REMOVE -->
in php using regex. can anyone lend a hand please
$str = preg_replace('/\<!--.*\-->/', '', $str);
i am trying to remove everything in between html comments
<!--
REMOVE -->
in php using regex. can anyone lend a hand please
$str = preg_replace('/\<!--.*\-->/', '', $str);
Try preg_replace('/<!--.*-->/sU', '', $str);