title: Java Regex to get Data between curly brackets
body: <p>I am looking for a regular expression to match the text between curly brackets. </p>
  
  <pre><code>{one}{two}{three}
  </code></pre>
  
  <p>I want each of these as separate groups, as <code>one</code> <code>two</code> <code>three</code> separately.</p>
  
  <p>I tried <code>Pattern.compile("\\{.*?\\}");</code> which removes only first and last curly brackets.</p>