method

to_s

v1_9_2_180 - Show latest stable - Class: MatchData
to_s()
public

Returns the entire matched string.

m = /(.)(.)(\d+)(\d)/.match("THX1138.")
m.to_s   #=> "HX1138"