ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Blazemeter functional API Extract from response of type regex for token


Article ID: 224771


Updated On:




How to retrieve a response (token) into a variable using type regex.


Release :

Component : BLAZEMETER 


To return the token into a variable use the following regular expression:

Additional Information

The API functional test results in a jmeter script being executed, see the request.jmx in the
According to the Jmeter doc, the regular expression must be enclosed in parenthesis.

Look for Regular Expression:

The regular expression used to parse the response data. This must contain at least one set of parentheses "()" to capture a portion of the string, unless using the group $0$. Do not enclose the expression in / / - unless of course you want to match these characters as well.