Shaba, 

Try something like this "params":"(.+?)nonce=(.+?)&psig=(.+?)"

Second group will extract value of nonce, third group will contain psig

Use debug sampler and "regexpr tester" in view results tree for debugging

Nermin

-----Original Message-----
From: Shaba K [mailto:[email protected]] 
Sent: Friday, November 25, 2011 11:16 AM
To: JMeter Users List
Subject: Re: Extracting from JSON using Regular expression Extrator

i see the value returned is REGEX_FAILED

On Fri, Nov 25, 2011 at 10:08 AM, Shaba K <[email protected]> wrote:

> Hi All,
>
> I am stuck with getting this extraction right
>
> here's my JSON snippet
>
> {
> :
>
"params":"authp=nonce.style&style=mock&nonce=T3LOmVN6YMl4KZGTJTyOJholMQ0&psi
g=MnJNx0_iWJfADsh7C5-IbwCLfZM",
> :   "type":"reCAPTCHA",
> :   "public_key":"6LciS7oSAAAAAG8P5umXg9j_65IsvR1lboEYaqJ-",
> :   "server":"https://www.google.com/recaptcha/api";,
> :   "command":"create_captcha"
> }
>
>
> i need to extract value of nonce & psig
>
>
> am passing
>
> nonce
> "params":"(.+?)"
> $1$
> -1
> REGEX_FAILED
>
> Am bit of no vice on Reg extractor.
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to