JavaScript::QuickJS::RegExp(3pm)

JavaScript::QuickJS::RegExp3pm

Javascript `regexp` in perl

Usage

    my $regexp = JavaScript::QuickJS->new()->eval("/foo/");
    if ($regexp->test('fo')) {
        # This won’t run because test() will return falsy.
    }

Overview

This class represents a JavaScript RegExp <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp> instance in Perl.

This class is not instantiated directly.

Methods

The following methods correspond to their JS equivalents:

•

exec()

•

test()

In addition, the following methods return their corresponding JS property:

•

flags()

•

dotAll()

•

global()

•

hasIndices()

•

ignoreCase()

•

multiline()

•

source()

•

sticky()

•

unicode()

•

lastIndex()

From libjavascript-quickjs-perl 0.21-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.