JSRegEx (open)

JavaScript-like regular expression

Syntax

LOADLIB "wh::regex.whlib";

OBJECTTYPE JSRegEx

Constructor

Variables

  • BOOLEAN global

    If set to TRUE, search from lastindex, and set it after the match

  • BOOLEAN ignorecase

    If set to TRUE, do a case insensitive match

  • INTEGER lastindex

    The position at which the next search will start, automatically updated after exec or test

  • BOOLEAN multiline

    If searches may span multiple lines (i.e. if "^" may occur after a "\n" and "$" before a "\n")

Properties

Functions