Rob, et al -- ...and then Rob Ellis said... % ... % you can make the .* less greedy... % % $text = preg_replace('/<!--.*?-->/', '', $text);
How does that make it ungreedy? The only thing I see relating question marks and greediness is that a question mark makes part of a regexp with a /U modifier (otherwise not greedy) back into a greedy portion. Am I missing something painfully obvious? % % - rob TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgpR4LqMxbiLk.pgp
Description: PGP signature