You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "BOLB (Bohdan L Bodnar)" <BO...@panduit.com> on 2013/03/14 21:02:01 UTC
Regular expression extractor assistance requested
Hello,
I'm looking at the return of a http call and need to extract a numerical value. The format is as follows: TEXT:INTEGER. The integer can be negative, zero, or positive. For example, TEXT:123 or TEXT:-123. I need to extract the integer and pass it on. I've no problem if the integer is zero or positive, but I haven't figured out how to extract it if it's negative. For example, if the integer's -123, I need to extract "-123" and pass it on.
Any assistance is greatly appreciated.
Thank you,
Bo
RE: Regular expression extractor assistance requested
Posted by "BOLB (Bohdan L Bodnar)" <BO...@panduit.com>.
Thank you, Deepak!
Bo
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Thursday, March 14, 2013 3:12 PM
To: JMeter Users List
Subject: Re: Regular expression extractor assistance requested
hi
does this not work (for the number part) -?[0-9]+ . You can use \d for digit as well.
On Thu, Mar 14, 2013 at 1:02 PM, BOLB (Bohdan L Bodnar) <BO...@panduit.com>wrote:
> Hello,
>
> I'm looking at the return of a http call and need to extract a
> numerical value. The format is as follows: TEXT:INTEGER. The
> integer can be negative, zero, or positive. For example, TEXT:123 or
> TEXT:-123. I need to extract the integer and pass it on. I've no
> problem if the integer is zero or positive, but I haven't figured out
> how to extract it if it's negative. For example, if the integer's
> -123, I need to extract "-123" and pass it on.
>
> Any assistance is greatly appreciated.
>
> Thank you,
>
> Bo
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Regular expression extractor assistance requested
Posted by Deepak Shetty <sh...@gmail.com>.
hi
does this not work (for the number part)
-?[0-9]+ . You can use \d for digit as well.
On Thu, Mar 14, 2013 at 1:02 PM, BOLB (Bohdan L Bodnar) <BO...@panduit.com>wrote:
> Hello,
>
> I'm looking at the return of a http call and need to extract a numerical
> value. The format is as follows: TEXT:INTEGER. The integer can be
> negative, zero, or positive. For example, TEXT:123 or TEXT:-123. I need
> to extract the integer and pass it on. I've no problem if the integer is
> zero or positive, but I haven't figured out how to extract it if it's
> negative. For example, if the integer's -123, I need to extract "-123" and
> pass it on.
>
> Any assistance is greatly appreciated.
>
> Thank you,
>
> Bo
>
>