You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by testerinCO <cm...@comcast.net> on 2011/11/15 19:16:03 UTC
Help with Reg Expression
Hello
How can I capture the information after the "=" sign up to the ampersand
sign.
openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&
Here is my reg exp statement
Reference Name: OPENID.NS
Regular Expression: openid.ns=(.+?)&
Template: $1$
Match No: 1
Default Value: Not found.
It always prints "Not found". Do I have to escape certain characters?
Thanks for your help.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-with-Reg-Expression-tp4995226p4995226.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
RE: Help with Reg Expression
Posted by testerinCO <cm...@comcast.net>.
Thank you. For some reason, my regular expression did not work. I used
yours and it worked just fine.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-with-Reg-Expression-tp4995226p5001382.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
RE: Help with Reg Expression
Posted by Nermin CALUK <ne...@atlantbh.com>.
The regex you mentioned should work - unless you have mistakenly left a
trailing space or something like that. "&" does not require escaping but "."
usually does.
Use View Results Tree and select RegExp Tester from the combo box in the
bottom for quicker debugging
Nermin
-----Original Message-----
From: testerinCO [mailto:cmolatch@comcast.net]
Sent: Tuesday, November 15, 2011 7:16 PM
To: jmeter-user@jakarta.apache.org
Subject: Help with Reg Expression
Hello
How can I capture the information after the "=" sign up to the ampersand
sign.
openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&
Here is my reg exp statement
Reference Name: OPENID.NS
Regular Expression: openid.ns=(.+?)&
Template: $1$
Match No: 1
Default Value: Not found.
It always prints "Not found". Do I have to escape certain characters?
Thanks for your help.
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Help-with-Reg-Expression-tp4995226p499522
6.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Help with Reg Expression
Posted by sebb <se...@gmail.com>.
On 15 November 2011 18:28, Deepak Shetty <sh...@gmail.com> wrote:
> your regex should have worked - a better one is
> openid.ns=([^&]*)&
Or even
openid\.ns=([^&]*)&
as "." is a meta-character.
> Did you add a debug sampler and check that the response does contain this
> text(no extra spaces etc)? Is your regex post processor a child of this
> sampler?
>
> On Tue, Nov 15, 2011 at 10:16 AM, testerinCO <cm...@comcast.net> wrote:
>
>> Hello
>> How can I capture the information after the "=" sign up to the ampersand
>> sign.
>>
>> openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&
>>
>> Here is my reg exp statement
>>
>> Reference Name: OPENID.NS
>> Regular Expression: openid.ns=(.+?)&
>> Template: $1$
>> Match No: 1
>> Default Value: Not found.
>>
>> It always prints "Not found". Do I have to escape certain characters?
>>
>> Thanks for your help.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://jmeter.512774.n5.nabble.com/Help-with-Reg-Expression-tp4995226p4995226.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Help with Reg Expression
Posted by Deepak Shetty <sh...@gmail.com>.
your regex should have worked - a better one is
openid.ns=([^&]*)&
Did you add a debug sampler and check that the response does contain this
text(no extra spaces etc)? Is your regex post processor a child of this
sampler?
On Tue, Nov 15, 2011 at 10:16 AM, testerinCO <cm...@comcast.net> wrote:
> Hello
> How can I capture the information after the "=" sign up to the ampersand
> sign.
>
> openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&
>
> Here is my reg exp statement
>
> Reference Name: OPENID.NS
> Regular Expression: openid.ns=(.+?)&
> Template: $1$
> Match No: 1
> Default Value: Not found.
>
> It always prints "Not found". Do I have to escape certain characters?
>
> Thanks for your help.
>
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Help-with-Reg-Expression-tp4995226p4995226.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>