I'd like to write a python regex to replace the string FARM_FINGERPRINT()
and anything inside that method call with the string '0'. For example, for the string:
s = 'FARM_FINGERPRINT(stuff(more stuff()), even more stuff), another_thing()'
The regex should replace it with '0, another_thing()'
.
I'd be open to non-regex solutions as well.