Hi,

I read out "id" values from a list with regEx, reference name "IDH".
Now I know, that ${"IDH_matchNr) gives the total number of groups.

I want to extract the highest "id" value for further use.

I tried following beanshell, but no luck:

*count = vars.get("IDH_matchNr");
new = 1;
for (i=0; i < count; i++) {
    lower = vars.get("IDH_g",i);        // I guess this one does not give me
the current value for the loop
    if (lower > new) {
       new = lower;
    }
}
vars.put("IDH",new);
*

thanks in advance

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913331.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to