title: Put all occurences in the String in quotes using regex in python
body: <p>I hava a long string were I can find something like this <code>data() { &lt;some data which is always different here&gt; }</code> I want to put all occurences in quotes. This is what I'm doing but it has no effect:</p>
  
  <pre><code>string = re.sub(r'data \(\) {(.*)}', r'"/1"', string)
  </code></pre>
  
  <p>I suppose there should be something different between curly brackets but I have no idea what...</p>
  
  <p><strong>@EDIT</strong>
  I realized my String look like this:</p>
  
  <pre><code>data() {
    &lt;some white spaces&gt; here is text
  &lt;some white spaces&gt; }
  </code></pre>