title: Create array of regex matches
body: <p>In Java, I am trying to return all regex matches to an array but it seems that you can only check whether the pattern matches something or not (boolean).</p>
  
  <p>How can I use a regex match to form an array of all string matching a regex expression in a given string?</p>