2008/5/7 Steve Kapinos <[EMAIL PROTECTED]>:
> Ok, stupid question time..
>
> I have a variable that I want to use a regex expression to create a new
> variable from. The __regExpression function only talks about parsing
> the previous response.
Until next release ...
>
> How can I reference a value generated by applying a regexpression to an
> existing variable?
>
Just generate a sample containing the variable - the Java Request is
handy for this.
If you don't want to do that, then it gets trickier.
> Javascript?
>
> How do I enter both the variable and expression to apply? Not a
> javascript guy. I see examples where you can do
>
> Variable.match(expression) but the variable isn't defined in
> javascript, its in jmeter
Remember that JMeter replaces variable references before passing the
text to the function.
e.g.
"${VAR}".replace("a","b")
might become
"abcdef"..replace("a","b")
>
> ---------------------------------------------------------------------
> 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]