replace c-style comments with newlines (regexp)

Fredrik Lundh fredrik at pythonware.com
Fri Dec 21 14:33:24 EST 2007


lex __ wrote:

> background: I'm trying to create a 'intelligent' source-code security
 > analysis tool for c/c++ , python and php files, but filtering the
 > comments seems to be  the biggest problem.  :(

for C/C++, why not just use "gcc -E source.c" (or equivalent), and use 
the line markers to figure out what comes from where?

</F>




More information about the Python-list mailing list