in reply to removing C style comments from text files

How do I use a regular expression to strip C style comments from a file?

For multiline comments you want '.' to match "\n", do this with a s///sg
But as the faq answer says, this isn't enough.

  • Comment on Re: removing C style comments from text files