JSRegEx::NEW (open)

Create a JavaScript-like regular expression object

Syntax

LOADLIB "wh::regex.whlib";

MACRO NEW(STRING pattern, STRING flags)

Parameters

STRING pattern

The regular expression (not enclosed by slashes)

STRING flags

Flags ('g', 'i', 'm')