code: public static Iterable<MatchResult> findMatches(Pattern pattern,
  			CharSequence s) {
  		List<MatchResult> results = new ArrayList<MatchResult>();
  
  		for (Matcher m = pattern.matcher(s); m.find();)
  			results.add(m.toMatchResult());
  
  		return results;
  	}
docs: Find all the matches of a pattern in a charSequence and return the
  results as list.
  
  @param pattern
  @param s
  @return