title: Java regex in Jenkins Text Finder to match 2 lines
body: <p>I have 2 lines in my jenkins console output and I am trying to capture them using the <code>Jenkins Text Finder plugin</code> using <code>java regex</code>
  My console output looks something like this:</p>
  
  <pre><code>**The total percentage is:70%
  Student passed the exam**
  </code></pre>
  
  <p>The <code>java regex</code> I tried is:</p>
  
  <pre><code>The total percentage is:([0-9]\d|\d{3,})%(\n|$)Student passed the exam
  </code></pre>
  
  <p>In the place of <code>(\n|$)</code> to pickup the next new line I tried <code>[\s\S]</code> and <code>(.|\n)</code>. But nothing is working.
  Can someone help me with this.</p>
  
  <p>EDIT:
  The build should be unstable when either one of them is found or when both the lines were found. Meaning for <code>A|B|AB</code></p>