title: Regex JSON response Gatling stress tool
body: <p>Wanting to capture a variable called scanNumber in the http response loking like this:</p>
  
  <pre><code>{"resultCode":"SUCCESS","errorCode":null,"errorMessage":null,"profile":{"fullName":"TestFirstName TestMiddleName TestLastName","memberships":[{"name":"UA Gold Partner","number":"123-456-123-123","scanNumber":"123-456-123-123"}]}}
  </code></pre>
  
  <p>How can I do this with a regular experssion?
  The tool I am using is Gatling stress tool (with the Scala DSL)</p>
  
  <p>I have tried to do it like this:</p>
  
  <pre><code>.check(jsonPath("""${scanNumber}""").saveAs("scanNr")))
  </code></pre>
  
  <p>But I get the error:</p>
  
  <pre><code>---- Errors --------------------------------------------------------------------
  &gt; Check extractor resolution crashed: No attribute named 'scanNu      5 (100,0%)
  mber' is defined
  </code></pre>