title: Javascript Regex matchAll function not working
body: <p>whenever I run the code below I get en error <code>TypeError: responseData.matchAll is not a function </code></p>
  <pre><code>    var responseData = response.data.toString(); 
      var regex = new RegExp('(&lt;dbname&gt;)(.*?)(?=&lt;\/dbname&gt;)', 'g'); 
  
      var matches = responseData.matchAll(regex);
      
  </code></pre>
  <p>When I replace <code>matchAll</code> with <code>exec</code> it works! However, I need to use <code>matchAll</code>. This is driving me crazy. Thanks</p>