What should I know about Python to identify comments in different source files?
Posted
by
Can't Tell
on Stack Overflow
See other posts from Stack Overflow
or by Can't Tell
Published on 2012-04-06T17:03:04Z
Indexed on
2012/04/06
17:28 UTC
Read the original article
Hit count: 192
I have a need to identify comments in different kinds of source files in a given directory. ( For example java,XML, JavaScript, bash). I have decided to do this using Python (as an attempt to learn Python). The questions I have are
1) What should I know about python to get this done? ( I have an idea that Regular Expressions will be useful but are there alternatives/other modules that will be useful? Libraries that I can use to get this done?)
2) Is Python a good choice for such a task? Will some other language make this easier to accomplish?
© Stack Overflow or respective owner