jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amelaao <amel...@gmail.com>
Subject Re: regex extractor
Date Sun, 07 May 2006 16:31:45 GMT
Thanks. I didn't realize you have to have parenthesis around ?s.

Amela


On 5/7/06, sebb <sebbaz@gmail.com> wrote:
>
> On 06/05/06, amelaao <amelaao@gmail.com> wrote:
> > I'm testing a WS using SOAP-RPC Request. I'm extracting part of the WS
> > Response message using RegEx Extractor Post Processor. However,
> sometimes
> > response message contains newline characters that mess up the RegEx
> > extractor and it can't find the match.
> > I would like to replace newline with "", and I played with Javascript
> > replace function but couldn't get it to work. Any ideas?
>
> I would not do that - better to fix the regex so that it matches new-line.
>
> Note that "\s" will match new-line, but "." does not, unless you
> change to single-line mode.
>
> Do this by prefixing the RE with (?s).
>
> This is explained on the Response Assertion page.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


--
Regards,
Amela

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message