Perl Compatible Regular Expressions Alternatives

Apps similar to Perl Compatible Regular Expressions include nregex, which is free and open source. Other options are TRE, RE2, Oniguruma and Hyperscan. In total there are five apps like Perl Compatible Regular Expressions for Linux, Mac, Windows and self-hosting.

Copy a direct link to this comment to your clipboard
Alternatives
Perl Compatible Regular Expressions alternatives page was last updated

Alternatives list

  1. nregex icon
     Like

    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 (MIT)

    Since

    • Since 2020 (updated Jan 2024)

    GitHub

    • GitHub stars: 52

    Platforms

    • Self-Hosted
    Good alternative?
     
  2. TRE icon
     Like

    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

    Since

    • Since 2020 (updated May 2026)

    GitHub

    • GitHub stars: 918

    Platforms

    • Windows
    • Mac
    • Linux
    Good alternative?
     
  3. RE2 icon
     Like

    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 with wrappers for many languages including Perl, Python, Erlang and more.

    Cost / License

    Since

    • Since 2020 (updated Oct 2026)

    GitHub

    • GitHub stars: 9.8k

    Platforms

    • Windows
    • Linux
    Good alternative?
     
  4. Oniguruma icon
     Like

    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

    Since

    • Since 2020 (archived)

    GitHub

    • GitHub stars: 2.5k

    Platforms

    • Linux
    Good alternative?
     
  5. Hyperscan icon
     Like

    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

    Since

    • Since 2020 (updated Jul 2026)

    GitHub

    • GitHub stars: 5.4k

    Platforms

    • Mac
    • Linux
    • FreeBSD
    Good alternative?
     
5 of 5 Perl Compatible Regular Expressions alternatives