Bastian
Bastian

Reputation: 1237

How to use regex to get value from response header in Jmeter

I am using regex to get value from response header in JMeter, I try to get the last value in query tt_unixtime and I failed.

Can someone please advise how to user regex to get the last value?

I Created a variable called time44444444 and I want it to get the value from the response, the problem is that it stored nothing.

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 1990

Answers (1)

Ori Marko
Ori Marko

Reputation: 58772

You have a few issues in your Regular Expression Extractor settings for getting the value matched:

Apply To: Response Headers

Regular expression should be (\w+) - any alphanumeric characters

Template should be $1$ - first group

Match No. should be be 1 - find first match

The template used to create a string from the matches found. This is an arbitrary string with special elements to refer to groups within the regular expression. The syntax to refer to a group is: '$1$' to refer to group 1

Upvotes: 1

Related Questions