Hi,
I couldn't test this when I replied as I didn't have access to jmeter, but
Sebb is correct :)

The 'g' part of the variable is not required
I tested this and it seems to work for me now!
/Regex Match No = -1/

/totalMatches = Integer.decode(vars.get("defaultPrice_matchNr")); 
int arrSize = totalMatches; 
int[] myArray = new int[arrSize]; 


for (int i = 0; i < myArray.length; i++) 
{ 
               
myArray[i]=Integer.decode(vars.get("*defaultPrice_*"+(i+1))); 
} 

Arrays.sort(myArray); 
System.out.println("Minimum = " + myArray[0]); 
System.out.println("Maximum = " + myArray[myArray.length-1]); /



ZK

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

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

Reply via email to