You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Nithya Prakash <ni...@gmail.com> on 2011/11/17 17:00:33 UTC

help required regarding regular expressions

hi all ,

          i am new to jmeter i am facing an issue while using regular
expressions in my script . i am trying to fetch an id from which is having
an expressions
viewOrganization(104). to fetch this id i am using this regular expressions
"viewOrganization(.+?)"  .with this i am able to get the id but aslong with
id , i am getting
this id=%28104%29 .how to exclude this %28 and %29 and get only id like 104
?


thanks in advance

Re: help required regarding regular expressions

Posted by ZK <st...@gmail.com>.
Or:
viewOrganization%28(\d+)%29



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/help-required-regarding-regular-expressions-tp5001594p5002388.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 required regarding regular expressions

Posted by ZK <st...@gmail.com>.
Or:
viewOrganization%28(\d+)%29



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/help-required-regarding-regular-expressions-tp5001594p5002387.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 required regarding regular expressions

Posted by Deepak Shetty <sh...@gmail.com>.
%28 and %29 are the url encoded forms of '(' and ')' which your regular
expression picks up
viewOrganization\((\d+) should work (Assuming your id is always digits only)

regards
deepak

On Thu, Nov 17, 2011 at 8:00 AM, Nithya Prakash
<ni...@gmail.com>wrote:

> hi all ,
>
>          i am new to jmeter i am facing an issue while using regular
> expressions in my script . i am trying to fetch an id from which is having
> an expressions
> viewOrganization(104). to fetch this id i am using this regular expressions
> "viewOrganization(.+?)"  .with this i am able to get the id but aslong with
> id , i am getting
> this id=%28104%29 .how to exclude this %28 and %29 and get only id like 104
> ?
>
>
> thanks in advance
>