You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tom Fernandes <an...@gmx.net> on 2008/03/04 13:08:49 UTC
multiple replaces with jexl in one variable
Hi,
I would like to do multiple replaces with jexl.
/${__jexl(vars.get("EXTRACTED_URL").replace("&"\,"&"))}
works so far, but I would also like to replace %20 with space and %2F with /
in the same variable.
How can I do this?
thanks,
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: multiple replaces with jexl in one variable
Posted by sebb <se...@gmail.com>.
On 04/03/2008, Tom Fernandes <an...@gmx.net> wrote:
> Hi,
>
> I would like to do multiple replaces with jexl.
>
> /${__jexl(vars.get("EXTRACTED_URL").replace("&"\,"&"))}
>
> works so far, but I would also like to replace %20 with space and %2F with /
> in the same variable.
>
> How can I do this?
Just chain the replaces.
vars.get("EXTRACTED_URL").replace("&"\,"&").replace("%20"\," ").etc
> thanks,
>
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org