Function
Native
string.gmatch
Returns an iterator function that, each time it is called, returns the next captures from <code>pattern</code> over the string s.
Syntax
string.gmatch(data, pattern)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
data
|
string | — | The string to search in |
pattern
|
string | — | The pattern to search for |
Returns
- function