title: Passing a variable from response to request in Jmeter
body: <p>So I have the following response after login:</p>
  
  <pre><code>       Response Data: {"status":"ok","userId":"GTBA6520506207","token":"74bb0ba8be426d50"}
  Request type : POST
  </code></pre>
  
  <p>I need to form my Regular expression extractor. What should be the parameters? I am using the following:</p>
  
  <pre><code>Reference name : token
  Regular expression : "$token":"(.+?)"
  Template: $1$.
  </code></pre>
  
  <p>Sample Request header:</p>
  
  <pre><code>Request Headers:
  Connection: keep-alive
  Referer: ****************/
  Accept-Language: en-US,en;q=0.5
  X-Token: 59d7ff6833495fcc
  X-User-Id: R1RCQTY1MjA1MDYyMDc=
  DNT: 1
  Accept-Encoding: gzip, deflate, br
  User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
  Accept: application/json, text/plain, */*
  Host: **************
  </code></pre>
  
  <p>The token changes on each login for the login page in Jmeter but for all the other pages the token remains the same and it is not changing. What should I do to solve that?</p>
  
  <p>Jmeter Results Tree:</p>
  
  <p>Login Page - (Token changes on each Jmeter run)</p>
  
  <p>Page 1  Page 2 &amp; Page 3 - Token remains the same.</p>
  
  <p>Thank you</p>