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/23 08:37:06 UTC

Help required in Regular expression .

Greetings,

In my script i'm try to fetch an id which is getting failed. Can anyone of
you help me out?

action:"manageCommunityMenbers(1,\"
2,3,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,38,40\",\"3\"
)"

I require the id's which are highlighted in yellow colour. So which regular
expression i shd use ?


Thanks

Re: Help required in Regular expression .

Posted by ZK <st...@gmail.com>.
hi,
try this:

bcControl\.jBreadCrumb\("addCrumb", "[a-zA-Z0-9 ]*", '(\d+?)'



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5479631.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 in Regular expression .

Posted by ZK <st...@gmail.com>.
I don't understand what you are asking



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5478785.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 in Regular expression .

Posted by Nithya Prakash <ni...@gmail.com>.
hey .... thanks a lot... its working fine now :)

On Wed, Jan 18, 2012 at 8:48 PM, ZK <st...@gmail.com> wrote:

> Hi,
> The solution I gave last time was:
> action:"manageCommunityMenbers\([\d]+,\\"([0-9,]+?)\\"
>
> It still works for me!! :)
>
>
> However I think this one is better:
> action:"manageCommunityMenbers\([\d]+,\\"([\d,]+?)\\"
>
>
>
>
> ZK
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5155095.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
>
>


-- 
Nithya Prakash.L

Re: Help required in Regular expression .

Posted by ZK <st...@gmail.com>.
Hi,
The solution I gave last time was:
action:"manageCommunityMenbers\([\d]+,\\"([0-9,]+?)\\"

It still works for me!! :)


However I think this one is better:
action:"manageCommunityMenbers\([\d]+,\\"([\d,]+?)\\"




ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5155095.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 in Regular expression .

Posted by Nithya Prakash <ni...@gmail.com>.
Hi

earlier you have given me a solution to fetch a particular set of id's
using regular expression. Here i have the same scenario but the id is
gettin failed.

Lastime you have suggested me a solution which worked and still working for
certain places. But not working for the above expression.

action:"manageCommunityMenbers\([0-9],\\"([0-9,]+?)\\


Expression which i have to fetch the id is:

action:"manageCommunityMenbers(13,\"5,6,13,17,21,26,31,35,45,54,57,64,68\",\"57\"
)"


is there a way to fetch the id's from the above expression which are
highlighted in yellow ??

Thanks
Nithya


On Wed, Nov 23, 2011 at 6:24 PM, Nithya Prakash
<ni...@gmail.com>wrote:

> hi ZK,
>
> though you didn get 100% wat i said, you gave the solution.... its working
> now....
>
> thanks
>
>
> On Wed, Nov 23, 2011 at 3:45 PM, ZK <st...@gmail.com> wrote:
>
>> HI
>> I'm still not 100% about what you want to extract..... however; does this
>> meet your requirements?:
>>
>> action:"manageCommunityMenbers\([\d+],\\"([0-9,]+?)\\"
>>
>>
>>
>>
>> ZK
>>
>> --
>> View this message in context:
>> http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5016171.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
>>
>>


-- 
Nithya Prakash.L

Re: Help required in Regular expression .

Posted by Nithya Prakash <ni...@gmail.com>.
hi ZK,

though you didn get 100% wat i said, you gave the solution.... its working
now....

thanks

On Wed, Nov 23, 2011 at 3:45 PM, ZK <st...@gmail.com> wrote:

> HI
> I'm still not 100% about what you want to extract..... however; does this
> meet your requirements?:
>
> action:"manageCommunityMenbers\([\d+],\\"([0-9,]+?)\\"
>
>
>
>
> ZK
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5016171.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 in Regular expression .

Posted by ZK <st...@gmail.com>.
HI
I'm still not 100% about what you want to extract..... however; does this
meet your requirements?:

action:"manageCommunityMenbers\([\d+],\\"([0-9,]+?)\\"




ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5016171.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 in Regular expression .

Posted by Nithya Prakash <ni...@gmail.com>.
oops sorry....  i want to fetch the following id starting from
\"2,3,5,6,..........36,38,40\"  from the below line. which regular
expression i should use to get those id's ?

action:"
manageCommunityMenbers(1,\"*
2,3,5,6,7,8,9,10,11,12,14,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,38,40
*\",\"3\" )"


Thanks



On Wed, Nov 23, 2011 at 1:52 PM, ZK <st...@gmail.com> wrote:

> I don't see any yellow highlighting.
> Could you be a bit more specific?
>
>
>
> ZK
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5015881.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
>
>


-- 
Nithya Prakash.L

Re: Help required in Regular expression .

Posted by ZK <st...@gmail.com>.
I don't see any yellow highlighting.
Could you be a bit more specific?



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Help-required-in-Regular-expression-tp5015787p5015881.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