i have a string with several "" in it, i need to replace a specific one. but this is not working, can anyone tell, me how to do this?
tried this
jsdump = jsdump.replace('"var"', card_var).strip()
jsdump = jsdump.replace("""var""", card_var).strip()
and nothing.
this is what i need:
card_var = cd1
basicly have: "in sentence","where "var" is ok"
need to replace to: "in sentence","where cd1 is ok"
import re) and create a dictionary with the words you want to replace:replacement_dict["var"]="cd1"