简体   繁体   中英

jmeter regular expression extract part of returned url

I need to extract a part of returned url from a GET Request. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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