Method: MatchData#string
- Defined in:
- lib/source/ruby.rb
#string ⇒ Object
call-seq:
mtch.string -> string
Returns a copy of the string that was matched against a pattern to produce mtch.
m1 = /(.)(.)(\d+)(\d)/.match("THX1138.")
m2 = "THX1138.".match(/(.)(.)(\d+)(\d)/)
m1.string #=> "THX1138."
m2.string #=> "THX1138."
3993 3994 3995 |
# File 'lib/source/ruby.rb', line 3993 def string `$q(this._string)` end |