You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by jkarstedt <je...@mail.handy.de> on 2004/12/14 10:27:11 UTC
Regular Expression Extractor replace chars in result
Hi all.
I try to use a "ForEach Controller" for wml sites.
he problem are quoted ampersand chars inside the urls I extracted
like this:
key1=value1&key2=value2
for further requests I have to replace the "&" by "&"
Does anyone knows how to do this for jmeter ?
greetings and thanks
jens v. karstedt
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular Expression Extractor replace chars in result
Posted by sebb <se...@gmail.com>.
On Tue, 14 Dec 2004 10:27:11 +0100, jkarstedt <je...@mail.handy.de> wrote:
> Hi all.
> I try to use a "ForEach Controller" for wml sites.
> he problem are quoted ampersand chars inside the urls I extracted
> like this:
> key1=value1&key2=value2
>
> for further requests I have to replace the "&" by "&"
> Does anyone knows how to do this for jmeter ?
Some suggestions:
1) extract value1 and value2 without the & in two RegexExtractors;
they will then be easy to use later.
2) Extract them both in the same RegexExtractor and use a suitable
template to re-create the desired text with "&" instead of "&"
3) Use the RegexFunction to remove the "amp;" suffix - or equally, to
replace "&" by "&".
>
> greetings and thanks
>
> jens v. karstedt
>
> ---------------------------------------------------------------------
> 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