Iterate over a string
Returns an iterator function for returning the next capture from a pattern over a string. If there is no capture, the whole match is produced.
For this function, a '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.
See Also ...
string.byte - Converts a character into its ASCII (decimal) equivalent
Lua base functions
(Help topic: lua=string.gmatch)
Enter a search string to find matching documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )