On Mon, 17 Jan 2005 13:50:53 -0600, Josh Trutwin <josh at trutwins.homeip.net>,  wrote:
> I want to remove all comments with the word Josh in it.  "Josh"
> could be anywhere inside the comment tags.

I believe this *should* work:

$text =~ s/<!--.*Josh.*-->/U/g;

I might have the syntax wrong at the end there, but this is how I'd do it in PHP:

$text = preg_replace("/<!--.*Josh.*-->/U","",$text);

Chris Finke