title: Match a string pattern multiple times in the same line
body: <p>I want to find a specific pattern inside a string.</p>
  
  <p>The pattern: <code>(\{\$.+\$\})</code><br>
  Example matche: <code>{$ test $}</code></p>
  
  <p>The problem I have is when the text has 2 matches on the same line. It returns one match.  Example: <code>this is a {$ test $} content {$ another test $}</code></p>
  
  <p>This returns 1 match:  <code>{$ test $} content {$ another test $}</code></p>
  
  <p>It should returns 2 matches:
  <code>{$ test $}</code> and <code>{$ another test $}</code></p>
  
  <p>Note: I'm using Javascript</p>