I have a string which is
string = "create (:TestCustomer {'FIRSTNAME': 'James', 'LASTNAME': 'Comey', 'CITY': 'Sydney'})"
I want to replace specific set of '
to %
. It has to look like
string = "create (:TestCustomer {%FIRSTNAME%: 'James', %LASTNAME%: 'Comey', %CITY%: 'Sydney'})"
I'm trying to use replace function. But failed to get the exact result.
'
for CAPS is replaced?