method

length

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

Returns the number of elements in the match array.

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