Checkout the preg_replace page in the PHP manual (at There is an example there on removing all 
HTML tags. You can just modify it to work on just comments.


Martin wrote:

> Hello! How can I easily strip off all html-comments (<! Comment >) from
> a string?
> Martin

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to