Skip to content
R

Re2

RE2 is a fast, safe, thread-friendly alternative

by googleFree

#385in Utilities
0In stores

Description

RE2 is a regular expression library written in C++ by Google. It is designed as a fast, safe and thread-friendly alternative to the backtrac…

Highlights

  • Linear-time matching
  • Safe for untrusted patterns
  • C++ library with an API reference
  • Used in production at Google since 2006

Ratings & Reviews

No ratings yet

Be the first to rate Re2.

People also visit

R

RGX

regex101 for the terminal — real-time matching, 3 engines, capture groups…

Developer Tools
Launch
R

regex101

Building and testing regular expressions

Developer Tools
Launch
C

cpp-pro

Writes, optimizes, and debugs C++ applications

AI Skills
Get
M

memory-safety-patterns

Implement memory-safe programming

AI Skills
Get
U

unsafe-checker

CRITICAL: Use for unsafe Rust code review and FFI

AI Skills
Get
C

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io)

AI Skills
Get

Re2 FAQ

What is RE2?

A regular expression library in C++ from Google, designed to be fast and safe.

Why is it safe?

Its match time is linear in the length of the input, so it can handle patterns from untrusted users.

What does it replace?

The backtracking engines used in PCRE, Perl and Python, as an alternative.

Does it support every regex feature?

The README has a syntax section that lists what is supported.

Where is the API?

The README includes a C++ API section and installation instructions.

What are the best Re2 alternatives?

Popular alternatives to Re2 include C2rust, Choose and Frozen. See all Re2 alternatives

Developer Stuff

Badges