[英]how to use Regular expression extractor to extract value from response in jmeter
<input
name="formToken" type="hidden"
value="19225544fb878c9a8c77dafdfe616454a13e3c96"
/>
above is the line having lot of space in between. 上面的那条线之间有很多空间。 i want to extract value using regular expression in Jmeter.
我想在Jmeter中使用正则表达式提取值。 so please help me for regular expression to extract.
所以请帮我提取正则表达式。
Be informed that using Regular Expression Extractor for parsing HTML is not the best idea , I would recommend going for CSS Selector Extractor instead, the relevant configuration would be as simple as: 知道使用正则表达式提取器解析HTML不是最好的主意 ,我建议改为使用CSS选择器提取器 ,相关配置将非常简单:
input[name=formToken]
input[name=formToken]
value
value
Demo: 演示:
More information: How to Use the CSS/JQuery Extractor in JMeter 详细信息: 如何在JMeter中使用CSS / JQuery提取器
Try with the following Regex: 尝试使用以下正则表达式:
value="(.+?)" value =“(。+?)”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.