in reply to parsing c++ and locating string in the code part

Could use something like File::Comments to strip away the comments, leaving you with a very simple regex to perform.

Could even pass through Filter::cpp or cpp, but that might be overkill.

  • Comment on Re: parsing c++ and locating string in the code part