title: Regular Expression to extract hour minute second from a line
body: <p>I have the following line</p>
  
  <pre><code>STATUS | webapp | 2014/05/26 15:03:13 | Starting the service...
  </code></pre>
  
  <p>Now I shall have to extract hour minute and second from the line..</p>
  
  <p>I came up with this code..</p>
  
  <pre><code> BufferedReader bin = new BufferedReader(new FileReader(wrapperFile));
   s = bin.readLine();
   final Scanner sc = new Scanner(s);
   final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
   while (sc.hasNextLine()) {
          final String line = sc.nextLine();
          final Date date = dateFormat.parse(line);
          final Calendar calendar = Calendar.getInstance();
          calendar.setTime(date);
          System.out.print(calendar.get(Calendar.HOUR));
          System.out.print(calendar.get(Calendar.MINUTE));
          System.out.print(calendar.get(Calendar.SECOND));
   }
  </code></pre>
  
  <p>But parser exception was thrown.. Is there any workaround to this problem..??</p>