How to extract value from html response and pass it on to next request in postman

Example url:

HTML Response:

. . . . . . <script>xab.start(’{“first”:“123xyz”,“second”:“abc123”,“third”…;</script>

In the above mentioned response i want to extract the value of the parameter second (“second”:“abc123”) from the response and pass it on to the next request.

It would be simpler if the response is JSON, but in the case this is HTML response.

I was able to do this on JMeter using Regex but having hard time to do it on Postman.


Hey @sumukh, please have a look at this answer and let me know if you’re still having trouble after trying the proposed solution there. Thanks.