Regex 需要jmeter中的正则表达式吗

Regex 需要jmeter中的正则表达式吗,regex,jmeter,correlation,Regex,Jmeter,Correlation,这是我的回答。此id将在下一个脚本中使用。请帮帮我,也许你最好用JSON解码器来代替 UPD {"string":"{\"data\":[{\"id\":\"2c9180834e532f54014e6759d2ac004b\",\"unitName\":\"Actual11\",\"owner\":\"Nikolus\",\"description\":\"performance\",\"nofChairs\":0,\"nofBeds\":0,\"nofApptStartWithInHour\"

这是我的回答。此id将在下一个脚本中使用。请帮帮我,也许你最好用JSON解码器来代替

UPD

{"string":"{\"data\":[{\"id\":\"2c9180834e532f54014e6759d2ac004b\",\"unitName\":\"Actual11\",\"owner\":\"Nikolus\",\"description\":\"performance\",\"nofChairs\":0,\"nofBeds\":0,\"nofApptStartWithInHour\":0,\"nofApptDischargeWithInHour\":0,\"modifiedDateTime\":\"Jul 7, 2015 12:10:17
我不知道你钥匙的顺序和名称是否保持不变。

试试这个

/{"string":"{\\"data\\":\[{\\"id\\":\\"([a-f0-9]+)\\".*/
只有当您的响应数据如您所给出的那样时,这才有效。我认为有些是额外的,比如
{“data\”:[{“id\”
。这应该像
{“data”:[{“id”
。在这种情况下

\{"string":"\{\\"data\\":\[\{\\"id\\":\\"(\w+)\\",

这应该足够了。下次先展示你的努力。

这应该作为评论发布。@Raptor我提供了一个正则表达式来回答这个问题。请检查。我想它会有所帮助。
\{"string":"\{"data":\[\{"id":"(\w+)",