jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 75blured <75blu...@gmail.com>
Subject search & replace
Date Mon, 30 Jul 2007 14:50:53 GMT
Hi,

I've finally opted for a bean shell post processor:
import java.util.regex.*;

------------------< cut here >------------------------------------
print("${url}");

prout = ${url};
patternStr = "&amp;";
replacementStr = "&";

// Compile regular expression
pattern = Pattern.compile(patternStr);

// Replace all occurrences of pattern in input
matcher = pattern.matcher(prout);
output = matcher.replaceAll(replacementStr);
print("output : " + output);
------------------< cut here >------------------------------------

However it seems to not find ${url} when  assigning it to prout variable ...

Do you know a way to do it ?

Regards,
75Blured.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message