Hi,

Thursday, May 6, 2004, 3:02:16 PM, you wrote:
JF> Hi,

JF> This isn't working:
JF> $text = preg_replace('/<!--(.*)-->/','',$text);

JF> Can someone advise what characters I need to escape, or whatever to get
JF> it going?

JF> TIA

JF> ---
JF> Justin French
JF> http://indent.com.au


you may need '/<!--.*?-->/s' if your comment spans lines

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to