title: Java regex in scanner
body: <p>I know it is simple, but I do not know why it does not work.</p>
  
  <p>I try to check if next String in scanner is matched by the pattern:
  String should begins with</p>
  
  <p><code>"   DESCRIPTION"</code>.
  So, I try:</p>
  
  <pre><code>Scanner sc = new Scanner("   DESCRIPTION = 'Header for scroller'");
  System.out.println("Has Next = " + sc.hasNext("\\s+DESCRIPTION.*"));
  </code></pre>
  
  <p>but it does not work, why?
  Simpler regex works fine:</p>
  
  <pre><code> Scanner sc = new Scanner("   DESCRIPTION = 'Заголовки таблиц скроллеров'");
   System.out.println("Has Next = " + sc.hasNext(".*DESCRIPTION.*"));
  </code></pre>