Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 83133 invoked from network); 8 Sep 2008 11:10:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 11:10:29 -0000 Received: (qmail 67382 invoked by uid 500); 8 Sep 2008 11:10:20 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 67350 invoked by uid 500); 8 Sep 2008 11:10:20 -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 67339 invoked by uid 99); 8 Sep 2008 11:10:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 04:10:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 11:09:21 +0000 Received: by fg-out-1718.google.com with SMTP id 22so885162fge.1 for ; Mon, 08 Sep 2008 04:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lVvia4NY0tjqUU6acDqX+0xsvIZnV8gL7kQp+aV4IWE=; b=ehc0vgCK8d1C8JKf5Nn1nN18pfyM03z1hjILMqIsACv3nup8aGVr62KYlc/qjQKtHA S2vUmVHk77nRFtD7RTHqVbsCckW3zJiM08nxnzI9OBdcpaAc40GCbnKgpy4wtxgk7+HX MBaw/B5aye0KVJL9dpQdIZ4hxDmynFWcdKEyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LxfTj0FA5kD1g1fbsTTXCUCfTimhZfNjjPWKA5OHmyRIiEhrQ9KLQd44NjYmXhnkSa 7nsuyo6pEkrbjE7MfwL4Vg86H/T7Jy67VL7YpIpx86J2rYdTOj3NpmG9Btb7nWccLUlM HhPskiqoYMne1FAXPYvHuPt01dPWf3R2xwbZU= Received: by 10.86.98.14 with SMTP id v14mr11166886fgb.74.1220872191547; Mon, 08 Sep 2008 04:09:51 -0700 (PDT) Received: by 10.86.65.7 with HTTP; Mon, 8 Sep 2008 04:09:51 -0700 (PDT) Message-ID: <25aac9fc0809080409v1bd5dcbam683a7dc42587bb20@mail.gmail.com> Date: Mon, 8 Sep 2008 12:09:51 +0100 From: sebb To: "JMeter Users List" Subject: Re: Regular Expression Extractor-Help Needed In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On 08/09/2008, Mathumathi Palani Bommu, EAS-Chennai wrote: > > Add Regular Expression extractor and provide the values as > Reference name:session > Regular Expression : value=(.*) I think that will capture too much as "." also matches any ">" it finds. Also, there is an extraneous ">" in the RE. Should probably be Regular Expression : The ? makes it stop at the first match (non-greedy). It would be a bit quicker to put: Regular Expression :]+) which will match all characters that are not ">" - this is an easier search to perform. If the value can be on a separate line, then you will need to use: Regular Expression :]+) Attributes are normally enclosed in quotes, in which case the RE need adjusting: Regular Expression : Template:$1$ > Match #:0 > Add a Default value so you can tell whether or not the RE was applied successfully. [And check the log just in case of syntax errors as these will not be reported to the GUI] > > U can use the sessionid value captured Regular expression extractor as > ${session} in the further requests > > > -----Original Message----- > From: Banerjee, Tapan [mailto:Tapan_Banerjee@syntelinc.com] > Sent: Monday, September 08, 2008 9:24 AM > To: jmeter-user@jakarta.apache.org > Subject: Regular Expression Extractor-Help Needed > > > Can u help me out in using Regular Expression Extractor...? > > I need to capture a value which actually is a session id...I've > tried > > vit various expressions bt of no use... > > > >
> > > value=98117.6678817335fAtzQcHpftVzzzzHDAciVpfzfcf> > > > > > > In the above HTML code, I need to capture the value highlighted. > I've tried hundreds of various regular expressions whch includes > *.* also...but of no use.. > Kindly give some suggestions on how can I capture it and also > how can I use the same value in my script where-evr needed... > > Thanks & Regards > > Tapan Banerjee > > EMail: tapan_banerjee@syntelinc.com > > Confidential: This electronic message and all contents contain > information from Syntel, Inc. which may be privileged, confidential or > otherwise protected from disclosure. The information is intended to be > for the addressee only. If you are not the addressee, any disclosure, > copy, distribution or use of the contents of this message is prohibited. > If you have received this electronic message in error, please notify the > sender immediately and destroy the original message and all copies. > > Confidential: This electronic message and all contents contain > information from Syntel, Inc. which may be privileged, confidential or > otherwise protected from disclosure. The information is intended to be > for the addressee only. If you are not the addressee, any disclosure, > copy, distribution or use of the contents of this message is prohibited. > If you have received this electronic message in error, please notify the > sender immediately and destroy the original message and all copies. > > > > DISCLAIMER: > ----------------------------------------------------------------------------------------------------------------------- > > The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. > It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in > this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. > Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of > this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender immediately. Before opening any mail and > attachments please check them for viruses and defect. > > ----------------------------------------------------------------------------------------------------------------------- > > --------------------------------------------------------------------- > 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