Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-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 90B39C730 for ; Thu, 24 May 2012 15:55:25 +0000 (UTC) Received: (qmail 15752 invoked by uid 500); 24 May 2012 15:55:24 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 15724 invoked by uid 500); 24 May 2012 15:55:24 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 15715 invoked by uid 500); 24 May 2012 15:55:24 -0000 Delivered-To: apmail-jakarta-jmeter-user@jakarta.apache.org Received: (qmail 15712 invoked by uid 99); 24 May 2012 15:55:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:55:24 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nithyaprakash86@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qc0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 15:55:16 +0000 Received: by qcsq13 with SMTP id q13so6956413qcs.31 for ; Thu, 24 May 2012 08:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=J7Rnrxt+1b6MN2GoP6DscnogdG6Qw6nnpIeyIq5UAbk=; b=YowHTNJ5TAx2avTNaDp2Jtvx2FE4O014lzq/6fWrdE5DMyADjblhtY/DSu0zur0z3z awqh+g7/dBzOp0tBxr4pFiRnIkyMjhgyQBvyZZ9bQRYRyuJhLMOOoSfO8/0viMJ8plTt h/2D+tN0ZaonMhHFhiLXnViD86l88Vc7FBbe0lY2SsmeIPmK1AFJkgCNB3WcaXhiYNAE wmJLFT6clL5IoZ7m5RBH5LE3gm24EfRCp9y1hA/kQNtHKcMYQi4KrS6G+mze/pk189oR lZqwJ6cxiidGQXtQ/jJJVKkaQeyogsO12lJR0TaE9mgMbm/XdXbLFhg2Nt3sHfyjqOnB THlw== MIME-Version: 1.0 Received: by 10.50.186.134 with SMTP id fk6mr17530923igc.22.1337874895650; Thu, 24 May 2012 08:54:55 -0700 (PDT) Received: by 10.64.56.104 with HTTP; Thu, 24 May 2012 08:54:55 -0700 (PDT) Date: Thu, 24 May 2012 21:24:55 +0530 Message-ID: Subject: Require help in Regular Expression!!! From: Nithya Prakash To: JMeter Users List , JMeter Users List Content-Type: multipart/alternative; boundary=14dae9340f2de8c03804c0ca45d4 --14dae9340f2de8c03804c0ca45d4 Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to fetch few things using regular expression but unable to get the parameters. *While i capture the action using HTTP proxy i get the parameter as * {'partId':'542024','partNumber':'SRW224G4P-K9-AU','productPart':'SRW224G4P-K9-AU','validationStatus':'not validated'},{'partId':'542027','partNumber':'UC560-T1E1-K9','productPart':'UC560-T1E1-K9','validationStatus':'not validated'},{'partId':'542028','partNumber':'CP-7925G-W-K9','productPart':'CP-7925G-W-K9','validationStatus':'not validated'},{'partId':'542029','partNumber':'CP-7962G=','productPart':'CP-7962G=','validationStatus':'not validated'} *When i take the HTML page of this to capture the expression * [{"equipmentPart":{"allAttributes":{"compositePartName":"SRW224G4P-K9-AU ","equipmentPartPhysicalSiteId":"73411","equipmentPartSiteId":73414,"equipmentPartId": 542024,"productPartName":"SRW224G4P-K9-AU","equipmentPartName":"SRW224G4P-K9-AU"}},"updatedTimeStamp":1337838775000,"solutionEntityId":542227,"solutionId":13959179,"status":"validation ok","id":95509,"createdTimeStamp":1337838666000,"messages":", Non Configurable"},{"equipmentPart":{"allAttributes":{"compositePartName":" UC560-T1E1-K9 ","equipmentPartPhysicalSiteId":"73411","equipmentPartSiteId":73412,"equipmentPartId" :542027,"productPartName":"UC560-T1E1-K9","equipmentPartName":"UC560-T1E1-K9"}},"updatedTimeStamp":1337838775000,"solutionEntityId":542230,"solutionId":13959179,"status":"validation ok","id":95510,"createdTimeStamp":1337838666000,"messages":", Non Configurable"}] Now i need to to capture the 'equipmentPartId: 542024' and 'compositePartName: SRW224G4P-K9-AU from the HTML page. Similarly there are 10 more expressions of the same manner. What regular expression to be used to fetch the id and and the part name and replace in http request ?? Thanks --14dae9340f2de8c03804c0ca45d4--