Hi,
I want to capture a list of ids (the number of ids is not fixed) contained
in an
xml response of an http request node.
I want to transform that list of ids in xml format (
<re>id1</re><re>id2</re>... )
to use it the next http request node.
I think i have to use an bsh post processor but tell me if there is a better
way.
Here is what i have done for the moment :
${__javaScript(
'${__regexFunction(<re>([0-9]+),$1$,ALL,|,ERREUR,testVar)}';
,resultat)};
${__log(${resultat})};
=>
12138|40635|43233|46001|66414|70412|78144|91563|95772|120428|126074|153317|157616|205421|232214|239471|249033|257621|291566|297973|32619
${__log(${testVar_matchNr})};
=> 21
${__log(${testVar_g1})};
=> 32619
${__log(${testVar_g2})};
=> undefined, why ? i have configured the __regexFunction with ALL.
Now, i don't know how to transform that lists into a xml string.
Can you help me ?
Thanks