jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Boso <ser...@bosoconsulting.it>
Subject Re: Regexp match multiple empty lines
Date Mon, 29 Dec 2014 08:42:23 GMT
Il 29/12/2014 06.28, Bob Meliev ha scritto:
> Hi,
>
> How I can match multiple empty lines? I have response:
>
> <th class="price"><strong id="total" class="totals">
>
>
>
>
>
>
>         $304.32
>
>
>
>
>
> </strong></th>
>
> I need to get 304.32 but got stuck after > character. Using this pattern d="total"
class="totals">\n
>
> Thanks in advance.
>
You have to switch to single line mode and remember to escape the '$'. The final result should
be something like:

  (?s)id="total" class="totals">.*?\$([\d\.]*)

regards



-- 

Ing. Sergio Boso




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message