jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: Is possible extract a group of values with Regular Expression extractor?
Date Wed, 28 Aug 2013 00:06:15 GMT
Match number -1 return all matches under the pattern
<variableName>_<matchIndex>_g<groupNumber>
The total number of matches is available in <variableName>_matchNr variable

Example: variableName = myVar
${myVar} will return default value or null if none was defined
${myVar_1_g1} will return the first match of the first group
${__V(myVar_${myVar_matchNr}_g1)} will return the value of the last match
of the first group


2013/8/27 guru <praumesh86@gmail.com>

> I have tried match No: -1 but it gives null. It is not extracting all the
> possible matches.
>
> Regular
>
> Expression:<ns6:UserId>(.+?)</ns6:UserId>.*<ns6:UserName>(.+?)</ns6:UserName>
> Template: $1$ $2$
> Match No: -1
> Default Value:
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Is-possible-extract-a-group-of-values-with-Regular-Expression-extractor-tp531174p5717997.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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message