jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R R" <raro...@hotmail.co.uk>
Subject RE: newlines in Response (RegEx Extractor)
Date Fri, 13 Oct 2006 10:23:21 GMT
Hi,

You can try the solution

...snip..

You cannot ignore new-lines; all you can do is set the single-line
modifier (?s) which allows . to match new-line. However, any new-lines
that are matched will be included in the matched data

...snip...

I used the above solution for something similar and it worked a treat.

R

>From: "Stefan Adamovsky" <spam.adam@gmx.de>
>Reply-To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
>To: jmeter-user@jakarta.apache.org
>Subject: newlines in Response (RegEx Extractor)
>Date: Fri, 13 Oct 2006 11:59:40 +0200
>
>Hi
>I need to extract some variables from the html code and have a little 
>problem with newlines
>-->class="wpsToolBarLink" href='(.+?)'<-- is my regular expression
>the problem is that the part href='LINK' sometimes is in the next line
>how is it possible to tell JMeter that there could be a newline?
>I tried it with -->class="wpsToolBarLink" (?m)href='(.+?)'<-- but it seems 
>that this is not successful
>
>Best regards/Met vriendelijke Groet / Pozdrowienia
>
>Stefan Adamovsky
>
>*******************************************************
>Stefan Adamovsky
>Testing and Integration Team
>
>Hellmann Worldwide Logistics GmbH & Co. KG
>DCC - Digital Community Center
>Hafenstr. 11, 49090 Osnabrück, GERMANY
>http://www.hellmann.net
>*******************************************************
>--
>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

_________________________________________________________________
Download the new Windows Live Toolbar, including Desktop search! 
http://toolbar.live.com/?mkt=en-gb


---------------------------------------------------------------------
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