in reply to Kill C style comments

You could try:

s/\/\*.*?\*\///g;

Which stops the regex being greedy. Don't forget that your regex ignores comment characters that occur within strings.

Replies are listed 'Best First'.
Re: Re: Kill C style comments
by sonic (Acolyte) on Mar 22, 2004 at 06:03 UTC
    Ah yeah, thanks pbeckingham, I thought that might be too simple.