title: Java regex removing last value unexpectedly
body: <p>I have a paragraph as follows (This is an example paragraph- in my other samples the words and letters remain the same and only the numbers change):</p>
  
  <pre><code>blablabla
  
  Reflux Table - Day1 
   Total Upright Supine Meal PostPr Cough
   Duration of Period  (d,hh: mm) 23:13 14:05 09:08 00:48 05:59 00:15
  Number of Refluxes 56 56 0 1 32 1
  Number of Long Refluxes&gt;5  (min) 1 1 0 0 0 0
  Duration of longest reflux (min) 5 5 0 0 4 1
  Time pH &lt;4  (min) 66 66 0 0 40 1
  Fraction Time pH &lt;4  (%) 4.8 0.0 11.3 3.6
  
  some more text blablaotherStuff
  </code></pre>
  
  <p>I want to extract the following paragraph</p>
  
  <pre><code>Reflux Table - Day1 
   Total Upright Supine Meal PostPr Cough
   Duration of Period  (d,hh: mm) 23:13 14:05 09:08 00:48 05:59 00:15
  Number of Refluxes 56 56 0 1 32 1
  Number of Long Refluxes&gt;5  (min) 1 1 0 0 0 0
  Duration of longest reflux (min) 5 5 0 0 4 1
  Time pH &lt;4  (min) 66 66 0 0 40 1
  Fraction Time pH &lt;4  (%) 4.8 0.0 11.3 3.6
  </code></pre>
  
  <p>To do this I have the following code:</p>
  
  <pre><code>Pattern ReflDay1_pattern = Pattern.compile("Reflux Table - Day1 .*?Fraction Time[^\n]*",Pattern.DOTALL);
  Matcher matcherReflDay1_pattern = ReflDay1_pattern.matcher(s);
  ArrayList&lt;String&gt; ReflDay1_arr = new ArrayList&lt;String&gt;();
  
          try {
              while (matcherReflDay1_pattern.find()) {
          ReflDay1_arr.add(matcherReflDay1_pattern.group(0)); 
          System.out.println("matcherReflDay1_pattern.group(0)"+matcherReflDay1_pattern.group(0));
                                                   }
              } 
  
          catch (Exception e) {
                    e.printStackTrace();
                      }
  </code></pre>
  
  <p>However this result chops off the last value so that I lose the '3.6'. This happens in any paragraph I try. How can I make sure it is included- is it the regex (I have tested the regex and it does extract what it should be extracting including the value 3.6)?</p>
  
  <pre><code>Reflux Table - Day1 
   Total Upright Supine Meal PostPr Cough
   Duration of Period  (d,hh: mm) 23:13 14:05 09:08 00:48 05:59 00:15
  Number of Refluxes 56 56 0 1 32 1
  Number of Long Refluxes&gt;5  (min) 1 1 0 0 0 0
  Duration of longest reflux (min) 5 5 0 0 4 1
  Time pH &lt;4  (min) 66 66 0 0 40 1
  Fraction Time pH &lt;4  (%) 4.8 0.0 11.3
  </code></pre>