$text = preg_replace('/<!--.*-->/su','',$text); Did not work (was too greedy, matched multiple comments)
$text = preg_replace('/<!--.*?-->/','',$text); Did not work (needed multiple lines)
$text = preg_replace('/<!--.*?-->/su','',$text); Does work so far, finger's crossed.
Thanks again to John, Paul, Rob, Tom, et al.
--- Justin French http://indent.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php