jmeter-user mailing list archives

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

You can try the solution


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


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


>From: "Stefan Adamovsky" <>
>Reply-To: "JMeter Users List" <>
>Subject: newlines in Response (RegEx Extractor)
>Date: Fri, 13 Oct 2006 11:59:40 +0200
>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
>Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>Ideal für Modem und ISDN:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Download the new Windows Live Toolbar, including Desktop search!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message