Yep, that's it! I found a quote like this:
${__javaScript('${NextLink}'.replace("&"\,"&"))}and that was plainly wrong. It needed to be /&/ as you have it. Thanks! Oliver -----Original Message----- From: Daniel L. Gregoire [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 August 2006 13:04 To: JMeter Users List Subject: Re: Replacing & with an & Oliver Erlewein (DSLWN) wrote: > Hi all, > > My problem is, that I extract (via post processor regular expression) > a portion of a form tag from a returned HTTP page. The content is > something like... > > https://www.xxxx.co.nz/Admin/AdminRegister/ApplicationForm.aspx?pp_Doc > Fi > leId=-1&pp_PageEnvironment=-1&pp_PrevNavNode=Vert%253aApply&am > p; pp_IsReadOnly=False&pp_RequestId=-1&pp_ViewMode=Default > > Now this needs to get POSTed in the next response. The problem is, > that browsers apparently do an automatic decode of the link in the > action tag of a form converting the & to an &. JMeter doesn't > (which is the correct behaviour!). Now I've looked at the > documentation and can't come up with a proper solution of how I can > replace string portions (without using Java Beans which I know nothing > about .....yet). Maybe someone has solved this problem before?! I also > had a look in the archives but I haven't found anything relevant. > > Thanks! > Oliver > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Here's a bit of JavaScript that takes care of the problem. I got this from somewhere in the archives. ${__javaScript('${yourVariable}'.replace(/amp;/g\,"))} yourVariable being the value of the Regex Postprocessor you're trying to decode. Make sure to include the quotes around your variable if the value itself does not have quotes. Regards, Daniel --------------------------------------------------------------------- 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]

