regex.new
regex_object = regex.new (pattern [, cflags])
Parameters:
pattern: string
cflags: string (any combination of 'i','m','o','s' and 'x')
Returns:
regex_object: userdata
Description:
Compiles pattern into the internal form.
Compilation flags can be specified in either of two ways:
-- If the pattern is enclosed in '/' (forward slashes)
then the flags can follow the trailing slash.
In this case, the cflags parameter is ignored.
-- Via the cflags parameter.
Object methods:
bracketscount, find, gsub, match
Far API used:
RegExpControl