title: JMeter: Using a regex extractor value in beanshell post processor to extract a value using it in another threads
body: <p>I managed to set a script to extract value from token and using it globally for other thread but unfortunately, my script is extracting value as 1 by default.</p>
  
  <p><a href="https://i.stack.imgur.com/qn0eM.png" rel="nofollow noreferrer">BeanShell PreProcessor</a></p>
  
  <p><a href="https://i.stack.imgur.com/uZECf.png" rel="nofollow noreferrer">Regular Expression Extractor + logs printed</a></p>
  
  <p>My expectation is to print the value extracted from the token request .</p>