简体   繁体   English

jmeter正则表达式提取返回网址的一部分

[英]jmeter regular expression extract part of returned url

I need to extract a part of returned url from a GET Request. 我需要从GET请求中提取返回网址的一部分。 As the following : 如下:

https://happy.new.year/idp/1Z8a8/resumeSAML20/idp/startSSO.ping    

I need to extract this value: 1Z8a8 and I need to put it into a new POST request. 我需要提取此值: 1Z8a8 ,并将其放入新的POST请求中。

Which regular expression do I have to use in regular expression extractor configuration? 我必须在正则表达式提取器配置中使用哪个正则表达式?

You could use this: 您可以使用此:

(.+?)\/

This will match the parts between slashes. 这将匹配斜线之间的部分。 The one you want is the fourth match. 您想要的是第四场比赛。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM