title: What is the difference between capturing and non-capturing Pattern?
body: <p>In the <code>Pattern</code> class it says there are two types of regex: <em>capturing</em> and <em>non-capturing</em>, but I don't understand the difference. </p>
  
  <p><a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#special" rel="nofollow">http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#special</a></p>
  
  <p>How are they different? When do I have to use each one? Any examples?</p>