jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kapil Khanna Avolent" <>
Subject RE: Regular Expression
Date Mon, 07 Jan 2008 22:22:55 GMT
Basically, I want to extract the sid (which is dynamic) in a sid
variabale from the following string:


And when its trying to GET the HTTP request, I'm passing all these as
parameters and for the sid,I'm passing the ${sid} variable, but its not
getting what its suppose to get.


-----Original Message-----
From: sebb [] 
Sent: Monday, January 07, 2008 1:58 PM
To: JMeter Users List
Subject: Re: Regular Expression

On 07/01/2008, Kapil Khanna Avolent <> wrote:
> Hi,
> I'm trying to extract the following string using Regular expression as

> specified
> String: requestType=AJAX&AJAXOpHandler=&sid=0.2566145450023796&mode

Which part of the string do you want to extract?

> RE : requestType=AJAXOpHandler=\&sid=(0\.)(\d*)\&mode

What happened to AJAX& ?

No need to escape the & characters.

Use the RE tester at:

> p.s : I have tried this with \0\.(\d*) also
> but when I'm using the RE variable, its simply printing the variable 
> name instead of the extracted string.

Try providing a default.

> Could anyone explain how exactly I can use RE here.
> Thanks.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message