I want to extract letters-number from response data and tried few regex but none are working.
Eg the response data (json) will contain something like:
"sessionId":"WC-123"
And I want to extract value of sessionId ie WC-123
and store it in variable so that it can be used in other tests.
The format of sessionId will not change. It's WC-(Number)
.
'"sessionId":"(WC-\d+)"'
这应该工作,虽然我不知道jmeter
Expected: Needs to Get the Session Id values
Given formats: "sessionId":"WC-123"
We need to create the following regex formats to extract the session Id values
Regular Expression formats
"sessionId":"(.+)"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.