Method: MatchData#size

Defined in:
re.c

#lengthInteger #sizeInteger

Returns the number of elements in the match array.

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

Overloads:



716
717
718
# File 're.c', line 716

static VALUE
match_size(match)
VALUE match;