Hacker GitHub

← All repos

google/re2

View on GitHub ↗ ★ 9,842 C++

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.

51 mentions on Hacker News by 41 people: 7 stories, 44 comments · first 2015-06-04 · latest 2024-09-05

Mentions per year 51 mentions · busiest year 2019 (9)
20082026
  1. If you take regex as user input, you should use RE2: https://github.com/google/re2 Even without this vulnerability, some regexes can be painfully slow.