title: Regular Expression in Java: How to refer to "matched patterns"?
body: <p>I was reading the Java Regular Expression tutorial, and it seems only to teach to test whether a pattern matched or not, but does not tell me how to refer to a matched pattern.</p>
  
  <p>For example, I have a string "My name is xxxxx". And I want to print xxxx. How would I do that with Java regular expressions?</p>
  
  <p>Thanks.</p>