RE2 Alternatives

RE2 is described as 'Fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library with wrappers for many languages including Perl, Python, Erlang and more' and is an app in the development category. There are five alternatives to RE2 for Linux, Mac, Windows, Self-Hosted and FreeBSD. The best RE2 alternative is Perl Compatible Regular Expressions, which is both free and Open Source. Other great apps like RE2 are Hyperscan, TRE, nregex and Oniguruma.

Copy a direct link to this comment to your clipboard
RE2 alternatives page was last updated

Alternatives list

  1. Copy a direct link to this comment to your clipboard

    The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API as well as a set of wrapper functions that correspond to the POSIX regular expression API.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Mac
    • Windows
    • Linux
     
    • Perl Compatible Regular Expressions is the most popular Windows, Mac & Linux alternative to RE2.

    • Perl Compatible Regular Expressions is the most popular Open Source & free alternative to RE2.

    • Perl Compatible Regular Expressions is Free and Open SourceRE2 is also Free and Open Source
  2. Hyperscan icon
     Like
    Copy a direct link to this comment to your clipboard

    Hyperscan is a high-performance multiple regex matching library. It follows the regular expression syntax of the commonly-used libpcre library, but is a standalone library with its own C API. Hyperscan uses hybrid automata techniques to allow simultaneous matching of large...

    Cost / License

    • Free
    • Open Source

    Platforms

    • Mac
    • Linux
    • FreeBSD
     
  3. TRE icon
     Like
    Copy a direct link to this comment to your clipboard

    TRE is a lightweight, robust, and efficient POSIX compliant regexp matching library with some exciting features such as approximate (fuzzy) matching.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Mac
    • Windows
    • Linux
     
  4. nregex icon
     Like
    Copy a direct link to this comment to your clipboard

    A DFA based Regex engine that supports submatches. Built with Nim (programming language). Benchmarks show nregex is up to 7 times faster than Perl Compatible Regular Expressions.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Self-Hosted
     
    • nregex is the most popular Self-Hosted alternative to RE2.

    • nregex is Free and Open SourceRE2 is also Free and Open Source
  5. Oniguruma icon
     Like
    Copy a direct link to this comment to your clipboard

    Oniguruma is a modern and flexible regular expressions library. It encompasses features from different regular expression implementations that traditionally exist in different languages.

    Cost / License

    • Free
    • Open Source

    Platforms

    • Linux
     
5 of 5 RE2 alternatives