title: JMeter: How to use Regular Expression to extract the value of a duplicate field?
body: <p>I have the following Response Body JSON:</p>
  
  <pre><code>{
      "address": [
      {
          "id": "1234"
      }
      ],
      "id": "d1a4f010-48d9-434b-9b3a-2d2b12f5e38c"
  }
  </code></pre>
  
  <p>I am trying to extract the value of the the <em>second</em> "id" field, i.e. </p>
  
  <pre><code>"id": "d1a4f010-48d9-434b-9b3a-2d2b12f5e38c"
  </code></pre>
  
  <p>I use this Regular Expression in JMeter:
  <strong>Regular Expression: "id":"(.+?)"</strong></p>
  
  <p>When I run my test, it returns "1234" instead of the guid. How can I change my Regular Expression so that it returns the guid? </p>