title: Replace all text between braces { } in Java with regex
body: <p>I have a long string with numerous occurences of text between { } that I would like to remove however when I do this:</p>
  
  <pre><code>data = data.replaceAll("{(.*?)}", "");
  </code></pre>
  
  <p>i get an error, so what am I doing wrong / how should I go about doing this?</p>