Return-Path: X-Original-To: apmail-jakarta-jmeter-user-archive@www.apache.org Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8AAC70CA for ; Tue, 18 Oct 2011 14:51:29 +0000 (UTC) Received: (qmail 14171 invoked by uid 500); 18 Oct 2011 14:51:29 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 14152 invoked by uid 500); 18 Oct 2011 14:51:29 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 14143 invoked by uid 99); 18 Oct 2011 14:51:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 14:51:29 +0000 X-ASF-Spam-Status: No, hits=2.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of stevesenior69@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 14:51:23 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RGB0R-0001gi-HJ for jmeter-user@jakarta.apache.org; Tue, 18 Oct 2011 07:51:03 -0700 Date: Tue, 18 Oct 2011 07:51:03 -0700 (PDT) From: ZK To: jmeter-user@jakarta.apache.org Message-ID: <1318949463529-4913980.post@n5.nabble.com> In-Reply-To: <1318937303193-4913331.post@n5.nabble.com> References: <1318937303193-4913331.post@n5.nabble.com> Subject: Re: beanshell get highest value of a regular expression MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, you could try this: totalMatches = Integer.decode(vars.get("IDH_matchNr")); int arrSize = totalMatches; int[] myArray = new int[arrSize]; for (int i = 0; i < myArray.length; i++) { myArray[i]=Integer.decode(vars.get("IDH_g"+(i+1))); } Arrays.sort(myArray); System.out.println("Minimum = " + myArray[0]); System.out.println("Maximum = " + myArray[myArray.length-1]); /(disclaimer.... I am a tester not a programmer)/ ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913980.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org