There will be support for this in the 2.0.3 release, due out very soon.
ForEach now supports variables in the input and output variable
fields, and the "_" separator is optional, so one can use refName_g or
refName_${C}_g in a loop.

Hope that works OK ...

The code is in the nightly build 2.0.20050317 if you are impatient to try it.

S.
On Wed, 16 Mar 2005 09:27:11 -0500, Michael Stover <[EMAIL PROTECTED]> wrote:
> I would say it'd be ideal for the ForEach Controller to be upgraded to
> know how to do exactly that - loop through a series of matches from a
> regex extractor.
> 
> Until that's done though, I think you're out of luck.
> 
> -Mike
> 
> On Wed, 2005-03-16 at 08:56, Vladimir Tsygankov wrote:
> > Our test script uses Regular Expression Extractor with the name
> > "refName1".
> > The main task of the script is to check correctness of all matches.
> >
> > It is possible to use the variables like ${refName1_g1}, ${refName1_g2},
> > ${refName1_g3} etc. but it is not
> > possible to use the variables like
> > ${refName1_g${__counter(false,refC)}}. They are not calculated!
> > So it is possible to run scripts like:
> > ...
> > Regexp Extractor <refName1>
> > If <expression with 1-th match>
> > If <expression with 2-th match>
> > ...
> > If <expression with i-th match>
> > ...
> >
> > but impossible to use simple and very important constructions like:
> > ...
> > Regexp Extractor <refName1>
> > Loop <for all matches>
> >   If <expression with i-th match>
> > ...
> > Maybe anybody knows how to resolve the problem?
> >
> > Thanks in advance,
> > Vladimir
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> Michael Stover <[EMAIL PROTECTED]>
> Apache Software Foundation
> 
> 
> ---------------------------------------------------------------------
> 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