jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nermin Caluk" <ner...@atlantbh.com>
Subject RE: Re: Saving the reply in Jmeter
Date Thu, 11 Aug 2011 12:43:49 GMT
Match No = -1 will match ALL occurrences 

Example: say your regex is <code>(.+?)</code> and Match no is -1. If there are
more than one occurrences of <code> this will match all of them, like ${EXTRACTED_CODE_1},
${EXTRACTED_CODE_2}, ${EXTRACTED_CODE_3} etc. If there are 3 matches, than you will also get
a variable like ${EXTRACTED_CODE_matchnr} with the value of 3, which is useful if you want
to Loop through all of them. 

In the same example, if you would use Match no. = 2, this would match only the 2nd occurrence.
Match no = 0 would match a random item.

Hope this helps, 
Nermin



-----Original Message-----
From: Adrian Speteanu [mailto:asp.adieu@gmail.com] 
Sent: 11. kolovoz 2011 14:29
To: JMeter Users List
Subject: Re: Re: Saving the reply in Jmeter

Why are you all using Match No.: -1 ?

On Thu, Aug 11, 2011 at 2:48 PM, <rajivkumarnandvani@gmail.com> wrote:

> :) lolz i alws be here in mail :)
>
>
> On , Oliver Lloyd <oliver_lloyd@hotmail.com> wrote:
>
>> Thanks Raj, where would we be without you.
>>
>
>
>
>  --
>>
>
>  View this message in context: http://jmeter.512774.n5.**
>> nabble.com/Saving-the-reply-**in-Jmeter-tp4687066p4689158.**html<http://jmeter.512774.n5.nabble.com/Saving-the-reply-in-Jmeter-tp4687066p4689158.html>
>>
>
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>
>
>
>  ------------------------------**------------------------------**---------
>>
>
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@**jakarta.apache.org<jmeter-user-unsubscribe@jakarta.apache.org>
>>
>
>  For additional commands, e-mail: jmeter-user-help@jakarta.**apache.org<jmeter-user-help@jakarta.apache.org>
>>
>
>
>
>


---------------------------------------------------------------------
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