Contents

Roo

RegexMatch.value

Returns the text value of this match.

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