to_a -> [String]
$&, $1, $2,... を格納した配列を返します。
/(foo)(bar)(BAZ)?/ =~ "foobarbaz" p $~.to_a # => ["foobar", "foo", "bar", nil]
[SEE_ALSO] MatchData#captures