GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JavaScript::QuickJS::RegExp(3) User Contributed Perl Documentation JavaScript::QuickJS::RegExp(3)

JavaScript::QuickJS::RegExp - JavaScript `RegExp` in Perl

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

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.

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()
2024-02-14 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.