mtch[i] â str or nilmtch[start, length] â arraymtch[range] â arraymtch[name] â str or nil
Instance Public methods
Match Reference â MatchData acts as an array, and may be
accessed using the normal array indexing techniques. mtch[0]
is equivalent to the special variable $&, and returns the
entire matched string. mtch[1], mtch[2], and so
on return the values of the matched backreferences (portions of the pattern
between parentheses).
m = /(