regex.match, regex.matchW
c1 [,c2]...] = regex.match (s, pattern, [init], [cflags])
Parameters:
s : string
pattern : string
init : integer (default=1; can be negative)
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.match, with the
following extensions:
-- cflags : optional 4-th parameter: compilation flags;
Note:
regex.matchW receives its 1-st argument and returns captures in
UTF-16LE encoding.
Far API used:
RegExpControl