Perl regex engine for node.js
Binding Perl to enrich the regular expression from node.js, such as look behind assertion.
Requirements
- Perl 5 is needed.
Installation
npm install perl-regex
Examples
- Match using regular expression in string:
let pregex = ; console; // output:// true
- Match using
RegExp
object:
let pregex = ; console; // output:// true
- Exec regular expression in string:
let pregex = ; console; // output:// [ 'power', 'responsibility', 'power' ]
- Exec
RegExp
object:
let pregex = ; console; // output:// [ 'https://127.0.0.1:1314/index.html',// 'https',// '127.0.0.1',// '1314',// 'index.html' ]