method find, findW

LuaFAR 3

method find, findW


from, to [,c1 [,c2]...] = regex_object:find (subj [, init])

Parameters:
  subj   :  string
  init   :  integer (default=1; can be negative)

Returns:
  from   : integer
  to     : integer
  c1,... : strings (there can be false in place of captures
                    not participated in the match)

Note:
regex_object:findW receives its 1-st argument and returns captures
in UTF-16LE encoding.

Far API used:
  RegExpControl