method

size

v1_8_7_72 - Show latest stable - Class: MatchData
size()
public

Returns the number of elements in the match array.

   m = /(.)(.)(\d+)(\d)/.match("THX1138.")
   m.length   #=> 5
   m.size     #=> 5