Skip to content
Eugene Lazutkin edited this page Jun 16, 2026 · 23 revisions

Dashboard

Node.js CI NPM version

Search

🔍 Search this wiki — ranked, deep-linked search via wiki-search; install the bookmarklet to search in place. Fallback: GitHub wiki search.

Documentation

Installing

Troubleshooting

Developers

Research and notes

Project

About

This project provides Node.js bindings for RE2: a fast, safe alternative to backtracking regular expression engines written by Russ Cox. To learn more about RE2, start with Regular Expression Matching in the Wild. More resources are on his Implementing Regular Expressions page.

RE2's regular expression language is almost a superset of what RegExp provides (see Syntax), but it lacks backreferences and lookahead assertions. See the README for details.

RE2 emulates standard RegExp, making it a practical drop-in replacement in most cases. The constructor accepts RegExp directly, honoring all properties.

It works with Node.js Buffers directly, reducing overhead and making processing of long files fast.

Clone this wiki locally