HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

How to extract the last occurrence in response? Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 509


11/9/2020
Unregistered User
Unregistered User
Posts: 509
I am using the extractor to capture the last occurrence in the response. Note that number of occurrences are keep changing.
I want to capture and use the last occurrence (always) what it may be.
Is there any setting in the extractor so that it will always capture the last occurrence?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555


11/9/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555
StresStimulus cannot extract the last occurrence of a text pattern because it is not clear how to define a search for any last value.
You can create a regular expression extractor that will extract the last value, instead.
Hint 1: The regular expression should include some pattern that comes after the last occurrence of the value you are trying to extract. Return the first occurrence of the regular expression extractor.
Hint 2: use this resource to practice creating regular expressions: https://regexr.com/
0 link






Copyright © 2024 Stimulus Technology