Ross ROSS = Recommend OSS · open-source software intelligence for agents

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. observed · 2026-08-28

github.com/google/re2 · C++ · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

68/100

  • Activity 63
  • Release rhythm 55
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 10.5
  • age_days: 4398
  • days_rel: 301
  • days_push: 223
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

9785 stars · 1241 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

RE2 is a C++ regular expression library that guarantees linear-time matching, making it safe for handling regexes from untrusted users. It uses automata-based engines instead of backtracking, avoiding exponential runtime and stack overflow, at the cost of not supporting backreferences or look-around.

Use cases

  • match user-supplied regex patterns safely without denial-of-service risk
  • run regex matching in multithreaded C++ services
  • replace PCRE where exponential backtracking is a security concern
  • parse and extract substrings from large text volumes with predictable performance
  • limit memory usage when compiling untrusted regular expressions

When to choose

  • you need guaranteed linear match time on untrusted input
  • you want thread-friendly regex matching without locks
  • you need bounded memory usage and no stack overflow risk
  • you don't need backreferences or look-around assertions

When to avoid

  • you rely on backreferences or look-around constructs
  • you need full Perl/PCRE feature compatibility
  • your patterns are simple and a backtracking engine is fast enough

Facets

library · maturity stable

parser search-engine parsers developer-tools cpp cross-platform regex regular-expressions linear-time-matching text-processing dfa algorithms

1 source

Member repositories

RepositoryRoleHealth v2
google/re2main68

For agents

markdown · JSON · MCP: product_card(name="google/re2")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem