Regular expression for removing all lines between #if X and #endif //#if X
Note the C style comment is important and needs to be taken into account
#if X
....
.....
#endif //#if X
The following is not giving desired o/p: So is the re right ?
re.compile("#if.*?#endif //#if X", re.MULTILINE + re.DOTALL)