|
NAMEJavaScript::QuickJS::RegExp - JavaScript `RegExp` in Perl SYNOPSIS my $regexp = JavaScript::QuickJS->new()->eval("/foo/");
if ($regexp->test('fo')) {
# This won’t run because test() will return falsy.
}
DESCRIPTIONThis 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. METHODSThe following methods correspond to their JS equivalents:
In addition, the following methods return their corresponding JS property:
|