I need to modify a C source file using a Python script. How would I change this string:
#define MY_STRING 0
to:
#define MY_STRING 1
using a Python regular expression?
Ideally, the solution would accommodate an unknown number of spaces before the numeric value.
(Basically I don't know how to specify the original string minus the numeric value in the new string).