Re: search pattern to match C comments?
- Gerald Lai <laige@...> wrote on 2006.03.31 14:59:06:
> On Fri, 31 Mar 2006, panshizhu@... wrote:That really helps!, thank...
> > For some reason I need to remove all the comments in my code.
> > So I will try to seach for /* ... */ statements.
> > I had tried /\/\*\_.*\*\/ but that doesn't work. Any comments? Or if
> > there's a better approach in match all comments in a C file?
> How about making the search non-greedy?
Pan, Shizhu. ext: 2221