Thanks for the answer sebb, but it didn't work that way. I did it with
the regular expression. By default perl regular expressions tries to
find a match for each line. So what I have done is "(?s).*text_to_find"
which has treated all the input as a single line and the greedy
quantifier ".*" which consumes the entire string prior to attempting the
first match. 

Ramazan
 
-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 1:11 AM
To: JMeter Users List
Subject: Re: Regex extractor, how to obtain the last match?

On Tue, 8 Mar 2005 18:50:06 +0200, Ramazan Yildirim
<[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I am a rather new Jmeter (2.0.2) user. I want to use the *last* match
> found for the regular expression.
> 
> Which could be like ${EXTRACTOR_VAR_g${ EXTRACTOR_VAR_matchNr}}
>
> How could I do this?

Try the following:

Set Match number to -1 - which forces all the matches to be found.
Then use the expression as above in a later test element.

Might work - I've not tried it.

> 
> I would appreciate your help.
> 
> Thanks in advance,
> 
> 
> Ramazan
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to