JMeter: How to use Regular Expression to extract the value of a duplicate field?

后端 未结 7 767
名媛妹妹
名媛妹妹 2021-01-17 02:35

I have the following Response Body JSON:

{
    \"address\": [
    {
        \"id\": \"1234\"
    }
    ],
    \"id\": \"d1a4f010-48d9-434b-9b3a-2d2b12f5e38c\         


        
7条回答
  •  庸人自扰
    2021-01-17 03:24

    You can use a lazy regex to find the guid directly instead of finding "id"

    Something like this: ([0-9a-z-]{36}).*?

    If you are not sure how to create the regex, just use an online regex maker.

提交回复
热议问题