method gsub, gsubW

LuaFAR 3

method gsub, gsubW


res, nmatch, nrep = regex_object:gsub (s, repl, [n])

Parameters:
  s:        string
  repl:     string, or table, or function
  n:        integer

Returns:
  res:      string
  nmatch:   integer
  nrep:     integer

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

Far API used:
  RegExpControl