jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Regular Expression Extractor behaving different from Results Tree RegEx Tester?
Date Wed, 07 Sep 2011 10:03:57 GMT
On 7 September 2011 09:48, SanderW <sander@performancearchitecten.nl> wrote:
> Hmmm, I finally got it.
>
> The regular expression /<dt>Geboorteplaats</dt>.*\n.*<dd>(.+?)</dd>/
does
> the trick.
> I needed to add another .* before the newline.
>
> If anybody have a different way of approach I would gladly hear it

Remember that HTTP tends to use CRLF as EOL.

Using (?s) is usually helpful when matching across multiple lines.

Also, .* is greedy; much safer (and more efficient) to use [^<]* here,
because you want to stop when you get to the next <

Can you provide a link (privately if necessary) to the URL?

> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Regular-Expression-Extractor-behaving-different-from-Results-Tree-RegEx-Tester-tp4777775p4777800.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message