RE2
A regular expression engine developed by Google that forgoes features such as backreferences and lookaround in order to guarantee linear-time matching performance. It is widely used across the Google API ecosystem.
Timeline (last 90 days)
Google's API ecosystem generally uses the RE2 regex engine, and RE2 deliberately omits features such as backreferences and lookaround
All Facts (7)
RE2 was developed by Google's Russ Cox and achieves linear-time complexity matching based on a hybrid DFA and NFA strategy, deliberately forgoing support for backreferences and lookaround assertions.
90%UnverifiedRE2 sets a default memory usage cap of 8 MB, returning a match failure directly when exceeded.
85%UnverifiedThe design of RE2 was directly inspired by the regular expression compilation algorithm published by Ken Thompson in 1968.
85%UnverifiedFollowing the incident, Cloudflare migrated its WAF's regex engine to a Rust-based RE2-style engine.
85%UnverifiedRE2 has been deployed in Google Search's query parsing, BigQuery's REGEXP_CONTAINS function, and Cloudflare's WAF rule engine.
80%UnverifiedRE2 is deployed internally at Google in core infrastructure such as code search, BigQuery, and log analysis systems, processing billions of regex matches per day.
75%UnverifiedGoogle's API ecosystem generally uses the RE2 regex engine, and RE2 deliberately omits features such as backreferences and lookaround
50%