title: My regular expression doesn't work
body: <p>I tried to extract values using a regular expression, but when I tried to print the output this exception appeared:</p>
  
  <pre><code>Exception in thread "Main Thread" java.lang.IllegalStateException: No match found
      at java.util.regex.Matcher.group(Matcher.java:468)
      at TEST.main(TEST.java:21)
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre class="lang-java prettyprint-override"><code>import java.util.ArrayList;
  import java.util.List;
  
  import java.util.regex.Matcher;
  import java.util.regex.Pattern;
  
  public class TEST {
      /**
       * @param args
       */
      public static void main(String[] args) {
          String string = "10/06/2013 01:45";
          Pattern pattern = Pattern.compile("([0-9]{1,})/([0-9]{1,})/([0-9]{4}) ([0-9]{1,}):([0-9]{1,})");
          Matcher matcher = pattern.matcher(string);
  
          System.out.println(matcher.group(1)+"\n"+matcher.group(2)+"\n"+matcher.group(3)+"\n"+matcher.group(4)+"\n"+matcher.group(5)+"\n");
      }
  }
  </code></pre>
  
  <p>Why is this code not working?</p>