title: Jmeter Regular Expression Extractor. How to save all returned values to a single variable?
body: <p>I'm quite new to Jmeter and already spent numerous hours to figure it out. 
  What i'm trying to achieve:</p>
  
  <p>Using Post Processor Regex Extractor I wrote a regex that returns me several values (already tested it in <strong>www.regex101.com</strong> and it's working as expected). However, when I do this in Jmeter, I need to provide MatchNo. which in this case will only return to me one certain value. I sort of figured it out that negative digit in this field (Match No) suppose to return all values found. When I use Debug Sampler to find out how many values are returned and to what variables they are assigned, I see a lot of unfamiliar stuff. Please see examples below:</p>
  
  <p>Text where regex to be parsed: </p>
  
  <pre><code>some data here...
  "PlanDescription":"DF4-LIB 4224-NNJ"
  "PlanDescription":"45U-LIP 2423-NNJ"
  "PlanDescription":"PMH-LIB 131-NNJ"
  some data here...   
  </code></pre>
  
  <p>As I said earlier, at www.regex101.com I tested this with regex:</p>
  
  <pre><code> \"PlanDescription\":\"([^\"]*)\"
  </code></pre>
  
  <p>And all needed for me information are correct (with the group 1).</p>
  
  <pre><code>    DF4-LIB 4224-NNJ
      45U-LIP 2423-NNJ
      PMH-LIB 131-NNJ
  </code></pre>
  
  <p>With the negative number (I tried -1, -2, -3 - same result) at MatchNo. field in Jmeter Regex Extractor field (which Reference Name is <strong>Plans</strong>) at the Debug Sampler I see the following:</p>
  
  <pre><code>Plans=
  Plans_1=DF4-LIB 4224-NNJ
  Plans_1_g=1
  Plans_1_g0="PlanDescription":"DF4-LIB 4224-NNJ"
  Plans_1_g1=DF4-LIB 4224-NNJ
  Plans_2=45U-LIP 2423-NNJ
  Plans_2_g=1
  Plans_2_g0="PlanDescription":"45U-LIP 2423-NNJ"
  Plans_2_g1=45U-LIP 2423-NNJ
  Plans_3=PMH-LIB 131-NNJ
  Plans_3_g=1
  Plans_3_g0="PlanDescription":"PMH-LIB 131-NNJ"
  Plans_3_g1=PMH-LIB 131-NNJ
  </code></pre>
  
  <p>I only need at this particular case - Jmeter regex to return 3 values that contain:</p>
  
  <pre><code>DF4-LIB 4224-NNJ
  45U-LIP 2423-NNJ
  PMH-LIB 131-NNJ
  </code></pre>
  
  <p>And nothing else. If anybody faced that problem before any help will be appreciated. </p>