NAME
JE::Object::RegExp - JavaScript regular expression (RegExp object) class
SYNOPSIS
use JE;
$j = new JE;
$js_regexp = new JE::Object::RegExp $j, "(.*)", 'ims';
$perl_qr = $js_regexp->value;
$some_string =~ $js_regexp; # You can use it as a qr//
DESCRIPTION
This class implements JavaScript regular expressions for JE.
See JE::Types for a description of most of the interface. Only what is specific to JE::Object::RegExp is explained here.
A RegExp object will stringify the same way as a qr//
, so that you can use =~
on it. This is different from the return value of the to_string
method (the way it stringifies in JS).
METHODS
- value
-
Returns a Perl
qr//
regular expression.
SEE ALSO
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 206:
=over without closing =back