to_s

mtch.to_s â str
Instance Public methods

Returns the entire matched string.

m = /(.)(.)(\d+)(\d)/.match("THX1138.")
m.to_s   #=> "HX1138"
doc_ruby_on_rails
2015-04-18 00:30:41
Comments
Leave a Comment

Please login to continue.