rex.new

Compiles a regular expression

Prototype

re = rex.new (pattern, flags)

Description

This compiles a pattern, returning a regular expression object that can be used to test regular expressions. For example:

re = rex.new ("(.+) goes (.+)")
Flags are optional. If you want to use them you can use the rex.flags () function to convert various flags into numbers.

Lua functions

Topics