method

length

v1_8_7_330 - 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