title: Regex101 vs JavaScript String.match disagreement
body: <p>This regex <code>/{(\w+)}/g</code> is supposed to match every word character <em>between</em> the curly braces <code>{}</code>. Instead, I'm getting different results in the <a href="https://regex101.com/r/iD4uP6/1" rel="nofollow noreferrer"><strong>Regex101 JavaScript engine</strong></a> and <em>Chrome console</em>.</p>
  
  <p><img src="https://i.stack.imgur.com/lpDfa.jpg" alt="regex 101 vs js engine"></p>
  
  <p><em>Regex101</em> works as expected, and the <code>.match</code> function works without the <code>g</code> flag, but it fails to retrieve the contents between curly braces once I apply it (it should fetch <code>["asd","asd2"]</code>, and instead it fetches <code>["{asd}","{asd2}"]</code>)</p>
  
  <p>Why does this happen? Thanks!</p>