Class | MatchData |
In: |
lib/core/facets/matchdata/match.rb
lib/core/facets/matchdata/matchset.rb |
Parent: | Object |
Return the primary match string. This is equivalent to +md[0]+.
md = /123/.match "123456" md.match #=> "123"
CREDIT: Martin DeMello