title: Jmeter - reset variables generated from Expression extractor
body: <p>I'm generating a number of variables in a script via the use of JSON and Regular expression extractors.</p>
  
  <p>I need to reset these for each test record I process to ensure that each one uses the correct extracted value.</p>
  
  <p>The problem (if it is a problem) is that the generated values consist of a number of array elements or groups.</p>
  
  <p>example:</p>
  
  <pre><code>Regular expression extractor generating Reference Name: identifier
  This generates:
  
   - Identifier
   - Identifier_g
   - Identifier_g0
   - Identifier_g1
  </code></pre>
  
  <p>I can successfully reset Identifier using <code>vars.put("Identifier",null);</code> at an appropriate point in a beanshell, however this doesn't reset the other items.</p>
  
  <p>I have a number of these extractions taking place and the number of results they produce can vary, so the 'g' value above may change.</p>
  
  <p>Any advice on how to reset these (or even if I need to)?</p>