From jmeter-user-return-12515-apmail-jakarta-jmeter-user-archive=jakarta.apache.org@jakarta.apache.org Mon Jun 12 10:32:33 2006 Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 69241 invoked from network); 12 Jun 2006 10:32:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2006 10:32:33 -0000 Received: (qmail 23404 invoked by uid 500); 12 Jun 2006 10:32:32 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 23173 invoked by uid 500); 12 Jun 2006 10:32:31 -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 23162 invoked by uid 99); 12 Jun 2006 10:32:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 03:32:30 -0700 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=PLING_PLING,SUBJ_ALL_CAPS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [157.203.42.33] (HELO mailrelay01.uk.atosorigin.com) (157.203.42.33) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 03:32:28 -0700 Received: from [157.203.148.177] (helo=ukacpr005.uk.int.atosorigin.com) by mailrelay01.uk.atosorigin.com with esmtp (Exim 4.32) id 1FpjwN-0005Kn-IA for jmeter-user@jakarta.apache.org; Mon, 12 Jun 2006 11:46:39 +0100 Received: from ukacpx001.uk.int.atosorigin.com (unverified) by ukacpr005.uk.int.atosorigin.com (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Mon, 12 Jun 2006 11:31:31 +0100 Received: from UKACPX002.uk.int.atosorigin.com ([157.203.148.216]) by ukacpx001.uk.int.atosorigin.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 12 Jun 2006 11:31:30 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: REGEX HELP!!! Date: Mon, 12 Jun 2006 11:31:49 +0100 Message-ID: <5CBBDBF61EDF6249BD19840432132448167BF5@UKACPX002.uk.int.atosorigin.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: REGEX HELP!!! Thread-Index: AcaL9B++mF/1+YzYSouBT1tO5WSSjAB7DTJAAAF5hiAABINQcAABYkIQ From: "Layton, Andrew" To: "JMeter Users List" X-OriginalArrivalTime: 12 Jun 2006 10:31:30.0075 (UTC) FILETIME=[5E135EB0:01C68E0B] X-UKAO-MailScanner-Information: Please contact the ISP for more information X-MailScanner-From: andrew.layton@atosorigin.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a classic Correlation exercise, one I am coming up-to-speed on. I suggest first, read the Help on Regular Expression Extractor (a post-processor). Your answer will be something like the below: Add a Regular Expression Extractor for the match as a child of the request which returns the response in question. Assuming you want a variable called RevDist_ID Use a Regex of (probably) Revision-dist-list-id=3D\"(\d+) =20 and a Template $1$ to extract the first group in the match, i.e. the number And a Match Number of -1 to get all matches in a set of variables=20 You then get a count of the matches in RevDist_ID_matchNr And the matches should appear in RevDist_ID_1, _2 etc (four in the below case) HtH Andy Layton Test Consultant -----Original Message----- From: Rupendra Butola [mailto:rbutola@asite.com]=20 Sent: 12 June 2006 09:17 To: JMeter Users List Subject: RE: REGEX HELP!!! Hi Oliver, I appreciate your quick response. In my single response, I have multiple revision-dist-list-id like revision-dist-list-id=3D\"74526\" revision-dist-list-id=3D\"74525\" revision-dist-list-id=3D\"74524\" revision-dist-list-id=3D\"74523\" How should I refer to each value? Best Regards, Butola Rupendrasingh Systems Operations T +91 (0) 79 26871002/26871003=20 E rbutola@asite.com=20 M +91 98244 92763 W http://www.asite.com =20 Standing for what you believe in , Regardless of the odds against you, And the pressure that tears at your resistance, .....means Courage=20 -----Original Message----- From: Oliver Erlewein (DSLWN) [mailto:Oliver.Erlewein@datacom.co.nz] Sent: Monday, June 12, 2006 11:37 AM To: JMeter Users List Subject: RE: REGEX HELP!!! Hi Well I got 1/2 a solution... You could use the eval command but it doesn't like the minus sighns. Something like this would work: > eval id=3D\"1253961259\" > echo $id 1253961259 Maybe you can do something with that. Cheers Oliver -----Original Message----- From: Rupendra Butola [mailto:rbutola@asite.com] Sent: Monday, 12 June 2006 5:32 p.m. To: JMeter Users List Subject: REGEX HELP!!! Hi All, I would appreciate some help regarding regex. In my response, I receive the following: revision-dist-list-id=3D\"74526\" How I will be able to extract value 74526. In the same response I receive multiple revision-dist-list-id but with different value. E.g. revision-dist-list-id=3D\"74526\" revision-dist-list-id=3D\"74525\" revision-dist-list-id=3D\"74524\" revision-dist-list-id=3D\"74523\" How should I refer these values? E.g. 74526, 74525. Best Regards, Butola Rupendrasingh Systems Operations T +91 (0) 79 26871002/26871003=20 E rbutola@asite.com=20 M +91 98244 92763 W http://www.asite.com =20 Standing for what you believe in , Regardless of the odds against you, And the pressure that tears at your resistance, .....means Courage=20 --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org _______________________________________________________ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.=20 _______________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org