title: Regex: Match number between two strings with line breaks
body: <p>I want to match only the value of this string that ends with <strong>ZW-Summe</strong> with RegEx (JavaScript, so no lookbehind - please consider: I must use regex):</p>
  
  <pre><code>[here is a lot more data with line breaks and so on...]
  2,550%Zinsen               83,72ZW-Summe U
  St         83,72Umsatzs? [more lines...]
  </code></pre>
  
  <p>Problem: There can be line breaks everyvery, even this could happen:</p>
  
  <pre><code>[data....] 2,550%Zinsen               83,7
  2ZW-Summe U
  St         83,72Umsatzs? [more lines...]
  </code></pre>
  
  <p>My goal is to match 83,72 only, without <strong>ZW-Summe</strong> and of course the value can change. Possible values:</p>
  
  <ul>
  <li>1.000,22</li>
  <li>0,22</li>
  <li>222,22</li>
  <li>100.000,22 and so on.</li>
  </ul>
  
  <p>I have to identify the value with the <strong>ZW-Summe</strong> String because there can be more occurrences of values.</p>
  
  <p>My first attempt is <code>((\d{0,3}((\.\d{3})){0,2}),\d{2})ZW-Sum</code> but this does also match ZW-Sum and I am not able to access groups - and the main problem is that I does not ignore possible line breaks.</p>
  
  <p>I hope this is even possible to match something (-VALUE-ZW-Summe) and than ignore the ZW-Summe in the result?</p>
  
  <p>Thank you for any suggestions. </p>