question: 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 ; }
target:  Find all the matches of a pattern in a charSequence and return the results as list.