Lua Methods Reference > LuaRegexMatch Methods > size

size
The size method returns the total number of sub matches made for the current match, including the whole match (sub match 0).
Syntax
size()
Returns
(Number). The number of sub matches for the current match.