0

So I got this response from the expression highlighted, but I need to get the last result the one in "Match [ 5 ] 1 "

Result

I'm using this config, is this correct?

Config

I've seen several examples online but they all use the same config, how can I get the one I'm asking for?

Thanks in advance

I've tried switching them and putting 5 in both fields, but I keep getting the Match [one][one] every time

1 Answers1

0

If you have 5 matches you will have the special JMeter Variable form_build_id_matchNr with the value of 5 from where you can extract the last match so you can refer the last match using __V() function as:

${__V(form_build_id_${form_build_id_matchNr},)}

In this case you will need to set "Match No" in the Regular Expression Extractor to -1

More information: Here’s What to Do to Combine Multiple JMeter Variables


In general using regular expressions for parsing HTML is not the best idea, you might want to consider using CSS Selector Extractor and come up with the proper selector to match only the "interesting" value

Dmitri T
  • 159,985
  • 5
  • 83
  • 133