reg-exp for removing multiline html comments

From: Date: Tue, 27 Nov 2001 19:53:12 +0000
Subject: reg-exp for removing multiline html comments
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2060@lists.php.net to get a copy of this message
i guess this had been asked before but i didnt find the answer yet in the manual it says under teh section "prefilter" ---------------------- // put this in your application, or in Smarty.addons.php function remove_dw_comments($tpl_source) { return preg_replace("/<!--#.*-->/U","",$tpl_source); } ---------------------- can someone tell me what is the regexp for multiple line html-comments to be removed to be able to remove this <!-- comment --> and that <!-- | comment +--> ??? i tried a lot of stuff but .... mmmm didnt find it ... i guess its to easy, right? thanks in advance -- Wolfram

« previous php.smarty.general (#2060) next »