title: How to extract variable name and value from string and assign to variable in python
body: <p>I have the following string which i would like to extract the variables and their values</p>
  <pre><code>text = &quot;family:'DefaultCroSec' name:'' I-Profile:  height:60[cm] Upper-width:35[cm] Lower-width:190[cm] Upper-thick:2[cm] Lower-thick:1.4[cm] Fillet-radius:0[cm] Web-thick:1[cm] zs:15.28[cm] material:'S355' applies to elements:'girders'&quot;
  </code></pre>
  <p>i.e</p>
  <pre><code>height = 60
  Upper-width = 35
  </code></pre>
  <p>etc etc</p>
  <p>What is the best way to do this?</p>