From jmeter-user-return-5350-apmail-jakarta-jmeter-user-archive=jakarta.apache.org@jakarta.apache.org Thu Jul 22 08:40:35 2004 Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 73308 invoked from network); 22 Jul 2004 08:40:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Jul 2004 08:40:35 -0000 Received: (qmail 85318 invoked by uid 500); 22 Jul 2004 08:40:32 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 85292 invoked by uid 500); 22 Jul 2004 08:40:32 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 85278 invoked by uid 99); 22 Jul 2004 08:40:32 -0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=JAVASCRIPT_URI,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [213.61.162.210] (HELO kingler.idg.de) (213.61.162.210) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 22 Jul 2004 01:40:28 -0700 Subject: Re: Can we use USER variable in Regular expression.'Viren geprueft!' To: "JMeter Users List" X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: Frank_Lindner@idg.de Date: Thu, 22 Jul 2004 10:20:31 +0100 X-MIMETrack: Serialize by Router on KLNW13/PARION-COM/DE(Release 6.5.1|January 28, 2004) at 22.07.2004 10:40:50 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, try this Expression: setReport\('(\S+)','(\d+)'\) $1$ should give you the name while $2$ should give you the number. If you want to search with a given (parameterized) name you can put the variable in there setReport\('${RepName}','(\d+)'\) Hope it helps. Sidenote: For testing regular expressions I use this little WinProg http://weitz.de/regex-coach/ Maybe you want give it a try. Best Regards Frank |---------+----------------------------> | | shambu pujar | | | | | | | | | 22.07.2004 07:57 | | | Bitte antworten | | | an "JMeter Users | | | List" | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | An: jmeter-user@jakarta.apache.org | | Kopie: | | Thema: Can we use USER variable in Regular expression.'Viren geprueft!' | >------------------------------------------------------------------------------------------------------------------------------| Hi, Here i m extratcing a value which represents ID . Snippet from which i am extracting is below study01 The value i am extracting is in Bold.It is number "29". and the "study01" coresponding text.. "study01" is from a parameter .So for second user it will be "study02" and Html response for second user will be something like study01 since the value "study01" is from parameter RepName can i substitute this parameter into regular expression???? if i can what's is syntax??? and i hv used following regular expression and it is not working. setReport\(\'${RepName}\'\,\'(.*?)\'\) plz help me regards shambu --------------------------------- Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org