问题
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.
回答1:
You have a few issues in your Regular Expression Extractor settings for getting the value matched:
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
来源:https://stackoverflow.com/questions/51708674/how-to-use-regex-to-get-value-from-response-header-in-jmeter