3 ms·
Regular expressions are part of the JavaScript language, so they're as much "written in JavaScript" as any other language construct. The point is that a regula
by skybrian 13y ago
Regular expressions are part of the JavaScript language, so they're as much "written in JavaScript" as any other language construct.
The point is that a regular expression compiled by V8 (which is not written in JavaScript) is faster than a regular expression as compiled by some particular C compiler. Of course a C compiler could possibly be written to understand calls to a standard regexp API and compile those to binary.