jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zillakilla <zi...@sogetthis.com>
Subject Re: problem with regular expression
Date Mon, 11 Apr 2011 08:54:44 GMT
In order to get the LAST documentId... this is the way I would do it:
1st put regEx extractor [as a child of HTTP Sampler] with these settings to
check 'how many document IDs are returned':
Ref name = totalMatches
regEx = documentId=([\d]*)
Template = $1$
Match No. = -1
Default value = NOT_FOUND

immediately AFTER the the 1st regEx extractor add another regEx extractor
[so BOTH regEX extractors are children of HTTP sampler] with these settings:
Ref name = documentId
regEx = documentId=([\d]*)
Template = $1$
Match No. = ${totalMatches_matchNr}
Default value = NOT_FOUND


:)
Zilla

--
View this message in context: http://jmeter.512774.n5.nabble.com/problem-with-regular-expression-tp4287850p4295474.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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