Reputation: 51
Whatever may to the total number of matching outcomes
Upvotes: 0
Views: 560
Reputation: 168092
As per Regular Expression Extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
refName_matchNr
- the number of matches found; could be 0
refName_n
, where n = 1, 2, 3 etc. - the strings as generated by the template
refName_n_gm
, where m=0, 1, 2 - the groups for match n
refName
- always set to the default value
refName_gn
- not set
So the total number of matches is being stored in ${refName_matchNr}
JMeter Variable
If you want to get the last match dynamically you can use __V() function like:
${__V(refName_${refName_matchNr})}
Replace refName
with your own JMeter Variable reference name
More information: Here’s What to Do to Combine Multiple JMeter Variables
Upvotes: 0