From: "Rob Ellis" <[EMAIL PROTECTED]>
> you can make the .* less greedy...
>
>   $text = preg_replace('/<!--.*?-->/', '', $text);

You still need an 's' modifier if you want to match multi-line comments. The
dot character won't match newlines unless you use an 's' modifier.

---John Holmes...

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

Reply via email to