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 E01F9DCAC for ; Sun, 12 Aug 2012 16:31:25 +0000 (UTC) Received: (qmail 97081 invoked by uid 500); 12 Aug 2012 16:31:25 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 97056 invoked by uid 500); 12 Aug 2012 16:31:25 -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 97046 invoked by uid 99); 12 Aug 2012 16:31:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 16:31:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sginsbourg@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 16:31:19 +0000 Received: by wibhm6 with SMTP id hm6so2217629wib.8 for ; Sun, 12 Aug 2012 09:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zKBdGozMbReSgzTbsYmcZehH/YtOqQAwGqW26e9Mf0I=; b=fmJBSHjXjrhdzjAm8GBMUYMUl2ZKZ1yEMeprJki3/g9OnZ8IX2SHmO3k1mmyPEl2/t xdVM4yUxDy41C/eULFQRYbP+H5efJ7oeP6CMSoYaAKhSLIMQ+r2IfB3TCxjXbPFmjEgq qXgvddYoNjwDanmIip5C1qeyuCsnMXMvvHXkVHYliGAoIBouQzrI0FmXg+r9HQ8OFaPt s6h+tcEm30eX8j4CVyYOjK9k/jnDPFi3BroeudGeVBUAVLB7jvyuFMp6rZGQd1hR7tYP iJWo2V6CuwtD68GP6goNrXbr246JBxvnedQmtpjFgdwxx4Bi3HKEZWxLvUqz21J4K9h/ 1CLQ== Received: by 10.180.84.1 with SMTP id u1mr11567128wiy.15.1344789058680; Sun, 12 Aug 2012 09:30:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.14.196 with HTTP; Sun, 12 Aug 2012 09:30:18 -0700 (PDT) In-Reply-To: References: From: Shay Ginsbourg Date: Sun, 12 Aug 2012 19:30:18 +0300 Message-ID: Subject: Re: Regular expression extractor with default value of "" / nothing To: JMeter Users List Content-Type: multipart/alternative; boundary=f46d0444023a23f5ea04c7141a82 --f46d0444023a23f5ea04c7141a82 Content-Type: text/plain; charset=UTF-8 ${__javaScript('')} On Sun, Aug 12, 2012 at 7:16 PM, Shmuel Krakower wrote: > Thanks for the quick response but it doesn't work for me: > > java.net.URISyntaxException: Illegal character in query at index 81: > http:/.../__services/v2/rest/bookmarks?filterGroupID=bookmarks&token=""&... > > > I need: > http:/.../__services/v2/rest/bookmarks?filterGroupID=bookmarks&token=&... > > Best, > Shmuel. > > On Sun, Aug 12, 2012 at 6:59 PM, Shay Ginsbourg wrote: > >> DEFAULT = "" >> >> >> >> On Sun, Aug 12, 2012 at 6:51 PM, Shmuel Krakower >> wrote: >> > >> > Hi, >> > I am using a regular expression extractor. >> > I need the default value to be empty i.e. "" if nothing matched the >> regex, >> > but if I leave the default value empty - than the variable is not set and >> > any reference to fails, i.e the value of ${token} remains ${token} >> instead >> > of empty string. >> > >> > What can I do? >> > >> > Best, >> > Shmuel Krakower. >> >> >> >> >> -- >> >> Regards, >> >> >> Shay Ginsbourg >> >> Regulatory & Testing Affairs Consultant >> >> >> WWW.GINSBOURG.COM >> >> >> Providing Regulatory, Medical & Performance Testing services since 2008: >> >> >> * IEC 62304 Medical Device Software Life Cycle >> >> * IEEE 829 Software Test Documentation >> >> * ISO 14971 Medical Device Risk Management >> >> * FDA 21 CFR Part 11 Software Validation >> >> * IEC 60601-1:2005 3rd ED PEMS - Medical Electrical Equipment >> >> * End-to-end verification, validation, and testing (VV&T) >> >> * FDA and CE submissions >> >> * Open source free testing tools implementation >> >> * Functionality and regression testing >> >> * Software Performance & Load testing >> >> * Software Testing Advanced Automation >> >> * Medical Software Verification & Validation >> >> * Medical Device Verification & Validation >> >> * Medical Device Regulatory Submission >> >> * Organizational Regulatory Qualification >> >> >> Formerly QA Manager of LoadRunner at Mercury Interactive >> >> >> M.Sc. cum laude in Bio-Medical Engineering >> >> M.Sc. in Mechanical Engineering >> >> >> Work: +972(0)3-5185873 >> >> Mobile: +972(0)54-6690915 >> >> >> Email: sginsbourg@gmail.com >> >> >> Visit my personal page on LinkedIn at: >> http://www.linkedin.com/in/shayginsbourg >> >> >> Please consider your environmental responsibility before printing this >> e-mail. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org >> For additional commands, e-mail: user-help@jmeter.apache.org >> >> -- Regards, Shay Ginsbourg Regulatory & Testing Affairs Consultant WWW.GINSBOURG.COM Providing Regulatory, Medical & Performance Testing services since 2008: * IEC 62304 Medical Device Software Life Cycle * IEEE 829 Software Test Documentation * ISO 14971 Medical Device Risk Management * FDA 21 CFR Part 11 Software Validation * IEC 60601-1:2005 3rd ED PEMS - Medical Electrical Equipment * End-to-end verification, validation, and testing (VV&T) * FDA and CE submissions * Open source free testing tools implementation * Functionality and regression testing * Software Performance & Load testing * Software Testing Advanced Automation * Medical Software Verification & Validation * Medical Device Verification & Validation * Medical Device Regulatory Submission * Organizational Regulatory Qualification Formerly QA Manager of LoadRunner at Mercury Interactive M.Sc. cum laude in Bio-Medical Engineering M.Sc. in Mechanical Engineering Work: +972(0)3-5185873 Mobile: +972(0)54-6690915 Email: sginsbourg@gmail.com Visit my personal page on LinkedIn at: http://www.linkedin.com/in/shayginsbourg Please consider your environmental responsibility before printing this e-mail. --f46d0444023a23f5ea04c7141a82--