jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Regular Expression
Date Mon, 07 Jan 2008 21:57:34 GMT
On 07/01/2008, Kapil Khanna Avolent <kkhanna@avolent.com> 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:

http://jakarta.apache.org/oro/demo.html

> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message