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

三世轮回 提交于 2021-01-29 12:48:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!