in reply to regular expression to delete comments

Take a look at Regexp::Common. This has been tested over a wider range of data than you have to hand.

Combine with File::Find if you need to locate the C files in a directory tree.

  • Comment on Re: regular expression to delete comments