mtch.captures â array
Instance Public methods
Returns the array of captures; equivalent to mtch.to_a[1..-1]
.
1 2 3 4 5 | f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match( "THX1138." ).captures f1 #=> "H" f2 #=> "X" f3 #=> "113" f4 #=> "8" |
Please login to continue.