Contents

Roo

MatchInfo.finish

Returns the zero-based position in the search text of the end of this match.

var result = "Dr McCoy".match(|(\w+) (\w+)|)
var mi = result.first_match.group(1)
mi.finish # => 2