Contents

Roo

MatchInfo.start

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

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