title: How to pattern match first occurence?
body: <p>How can I always take the first element matched by a pattern?</p>
  
  <pre><code>Pattern pattern = Pattern.compile("(\\d+)K");
  Matcher matcher = pattern.matcher("CARRY8K");
  baggageWeight = matcher.group(); //I'd like to extract the "8"
  </code></pre>
  
  <p>Result: <code>java.lang.IllegalStateException: No match found</code></p>
  
  <p>Why?</p>