title: Java Scanner to split records by an empty line
body: <p>I have records formatted the following way:
  <br>
  <br>
  record 1 line <br>
  record 1 line <br>
  record 1 line <br>
  <br>
  record 2 line <br>
  record 2 line <br>
  record 2 line <br>
  <br>
  ...
  <br></p>
  
  <p>I'd like to use a java Scanner to pull each record's lines out.  However, my patter does not seem to be working correctly.</p>
  
  <pre><code>new Scanner(reader).useDelimiter(Pattern.compile("^\\s*$"));
  </code></pre>
  
  <p>I get back my input rather then scanner.next() giving me the lines for each record.</p>