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.