Checkout the preg_replace page in the PHP manual (at http://www.php.net/manual/en). There is an example there on removing all HTML tags. You can just modify it to work on just comments.
Mike Martin wrote: > Hello! How can I easily strip off all html-comments (<! Comment >) from > a string? > > Martin > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]