I have the following string
s = "ΔG'° = (-19.9 +/- 0.4) kilojoule / mole"
I'd like to generate a dictionary like the following
d = {"mean"= -19.9, "sd": 0.4, "units": "kilojoule / mole"}
If the string is -19.9 +/- 0.4 I could do s.split("+/-"). But in the given format, I have
to split several times based on each delimiter.
Is there an easy way of doing this?