regex.gmatch, regex.gmatchW
for c1 [,c2 ...] in regex.gmatch (s, pattern [, cflags]) do
......
end
Parameters:
s : string
pattern : string
cflags : string (any combination of 'i','m','o','s' and 'x')
Returns:
c1,... : strings (there can be false in place of captures
not participated in the match)
Description:
The function is API-compatible with string.gmatch, with the
following extensions:
-- cflags : optional 3-rd parameter: compilation flags;
Note:
regex.gmatchW receives its 1-st argument and returns captures in
UTF-16LE encoding.
Far API used:
RegExpControl