Contents

Roo

MatchInfo.value

Returns the text value of this match.

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