title: How to Get, Assign the Span Id value in JMeter Beanshell?
body: <p>I have created a User Defined Variable with name as "Status" and a default value as "Started".</p>
  
  <p>I got a HTML Response, with following content:</p>
  
  <pre><code>&lt;SPAN id="ApplicationStatus"&gt;&amp;nbsp;Interrupted&lt;/SPAN&gt;
  </code></pre>
  
  <p>I want to get the Span Id value and use in beanshell samplers to process further either in If Controller or Switch Controller.</p>
  
  <p>I used Regular Expression extractor to extract the value needed and its working too. </p>
  
  <p>But when i say <code>vars.get("Status")</code> will always return me the default value "Started". </p>
  
  <p>Is there a way where i can extract the required value "Interrupted" and substitute that to the user defined variable "Status"?</p>