google/re2: RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library. ·
github.com · 1,469 words · saved by 1 readers
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
RE2 is an efficient, principled regular expression library that has been used in production at Google and many other places since 2006. Safety is RE2's primary goal. RE2 was designed and implemented with an explicit goal of being able to handle regular expressions from untrusted users without risk. One of its primary guarantees is that the match time is linear in the length of the input string. It was also written with production concerns in mind: the parser, the compiler and the execution engines limit their memory usage by working within a configurable budget—failing gracefully when…
saved by
related reading
- GitHub - kyx0r/pikevm: Russ Cox/Rob Pike pikevm regex implementationgithub.com
- Thompson's construction - Wikipediaen.wikipedia.org
- The Regular Expression Denial of Service (ReDoS) cheat-sheet | by James Davis | Level Up Codinglevelup.gitconnected.com
- Implementing Regular Expressionsswtch.com
- Composer2.pdfcursor.com
- Regular expression - Wikipediaen.wikipedia.org
- Regular expressions library (since C++11)en.cppreference.com
- An additional non-backtracking RegExp engine · V8v8.dev
- Regular expression HOWTO — Python 3.14.6 documentationdocs.python.org
- Tristan's Site - Tristan Humethume.ca
- Rewriting Bun in Rust | Bun Blogbun.com
- Regular Expression Matching with a Trigram Indexswtch.com