There are a number of differences between regular expressions in JavaScript and PCRE regular expressions (used in Perl and PHP), the most important of which is probably the absence of
lookbehind (retrospective verification) in JavaScript.
A natural task for programmers, annoyed by these differences, is the introduction of PCRE into JavaScript.
On the Node engine, by the end of this January, Brian White
(Brian White) solved this problem by creating a
node-pcre module that serves as a wrapper around the PCRE engine.
')
This can be happy, and rejoice.
However,
node-pcre, like any wrapper around a binary code, requires a separate compilation on each of the platforms compatible with Node.
I wonder if, over time, would anyone think of using
Emscripten to translate the PCRE engine
directly into JavaScript?
Dreams Dreams.