title: Regex for matching all words between a set of curly braces
body: <p>A simple question for most regex experts I know, but I'm trying to return all matches for the words between some curly braces in a sentence; however Ruby is only returning a single match, and I cannot figure out why exactly.  </p>
  
  <p>I'm using this example sentence:</p>
  
  <pre><code>sentence = hello {name} is {thing}
  </code></pre>
  
  <p>with this regex to try and return both "{name}" and "{thing}":</p>
  
  <pre><code>sentence[/\{(.*?)\}/]
  </code></pre>
  
  <p>However, Ruby is only returning "{name}".  Can anyone explain why it doesn't match for both words?</p>