or download this
In list context, it returns a list of the substrings matched by
any capturing parentheses in the regular expression. If there are
no parentheses, it returns a list of all the matched
strings, as if there were parentheses around the whole pattern.