title: Trouble With/Confused By Java.util.Scanner's next(Pattern) Method
body: <p>I've constructed a regular expression which I compile to a Pattern to find Fortran Real*8 numbers.  The tricky bit is that the file I'm reading from is a single line with a few million columns..
  When I do this:</p>
  
  <pre><code>Scanner recordScanner = new Scanner(recordString);
  String foundReal = recordScanner.findInLine(real8Regex);
  </code></pre>
  
  <p>I get what I'm looking for, but when I use the next(Pattern) method, I get an InputMismatchException.. Strange, considering both findInLine and next return Strings.</p>
  
  <pre><code>Scanner recordScanner = new Scanner(recordString);
  String foundReal = recordScanner.next(real8Regex);
  </code></pre>
  
  <p>Am I missing something crucial in the use of the next() method?</p>