Skip to main content

string.gmatch

Using lua patterns, returns an iterator which will return either one value if no capture groups are defined, or any capture group matches.

string.gmatch(str: string, pattern: string): function

Arguments

NameDescriptionType
strString to search.string
patternPattern to search for.string

Returns iterator: function