title: Is there a Regex code to combine the codes I have to lookabove and look between a line?
body: <p>Lets say this is my teststring:</p>
  
  <pre><code>XXX 3.14 QQQ
  XXX 3.14 QQQ
  YYY
  </code></pre>
  
  <p>I would like to have the second 3.14 as the exact match. I think this would require me to combine the next two code lines:</p>
  
  <ul>
  <li><code>((?&lt;=XXX ).*(?= QQQ))</code> which selects both 3.14.</li>
  <li><code>.*\n(?=((.*\n){1})(YYY))</code> which selects the full second line.</li>
  </ul>
  
  <p>However, when I use <code>((?&lt;=XXX ).*(?= QQQ)).*\n(?=((.*\n){1})(YYY))</code> the exact match is the second "3.14" and "QQQ".</p>
  
  <p>Any help would with finding out how to match the second 3.14 with the use of these formulas would very much be appreciated.</p>
  
  <p>Thank you</p>