title: Get text between curly brackets in python
body: <p>I'm trying to get text out of the curly brackets of this text:</p>
  
  <pre><code>circle(265.17373,-53.674312,1") # text={1}
  circle(265.17373,-53.674312,2") # text={2}
  </code></pre>
  
  <p>For the stuff between parenthesis I use this and that works </p>
  
  <pre><code>array = np.append(array, np.array([float(x) for x in re.findall(r"\d+(?:\.\d+)?", line)]))
  </code></pre>
  
  <p>But I also want the text inside of the curly brackets. </p>
  
  <pre><code>array2 = np.append(array2, np.array([float(x) for x in re.findall(r"/\{([^}]+)\}/", line)]))
  </code></pre>
  
  <p>But that does not give back anything.</p>