rex.flags

Returns a table of PCRE flags

Prototype

flag_table = rex.flags ()

Description

This returns a table of PCRE flags. You can index into this to get various compile and runtime flags.

The following are valid compile-time flags: The following are valid execution-time flags: An example of using the flags would be:

re = rex.new ("(.+) goes (.+)", rex.flags ().CASELESS)
This would make a caseless regular expression.

Lua functions

Topics