Reputation: 13
How can I extract the session id from response?
{"game_url":"https://nogs-gl-stage.nyxmalta.com/game/?nogsgameid=110004&nogsoperatorid=421&sessionid=2007_a87178f4-a398-46f9-b156-a05da5040a37&nogscurrency=EUR&nogslang=en_us&nogsmode=real&accountid=7116&clienttype=html5&lobbyurl=https%3A%2F%2F%2Flobby%2Ffeatured-games",
"non_regulated_game":"NON_REGULATED_GAME_MESSAGE"}
Upvotes: 1
Views: 6201
Reputation: 168002
Example configuration would be:
Configure it as follows:
sessionid
sessionid=(.+?)&
$1$
${sessionid}
or ${__V(sessionid)}
where required later on You can also use "RegEx Tester" view of the View Results Tree listener to test your regular expressions without having to re-run the request:
References:
Upvotes: 2