Difference between revisions of "Utf8.gmatch"

From GiderosMobile
Line 14: Line 14:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (function) <translate>iterator function</translate><br/>
 
'''<translate>Returns</translate>''' (function) <translate>iterator function</translate><br/>
 +
 +
{{Utf8}}

Revision as of 22:14, 11 February 2020


Available since: Gideros 2016.06
Class: utf8

Description

Returns an iterator function that, each time it is called, returns the next captures from pattern over the string s. If pattern specifies no captures, then the whole match is produced in each call. For this function, a caret '^' at the start of a pattern does not work as an anchor, as this would prevent the iteration.

(function) = utf8.gmatch(s,pattern)

Parameters

s: (string)
pattern: (string)

Return values

Returns (function) iterator function