Contents

Roo

RegexMatch.start

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

var r = |love\|hate|
var match = "Sally loves Harry. Batman hates the Joker".match(r).first_match
match.start # => 6