safe-regex-rs VS re2

Compare safe-regex-rs vs re2 and see what are their differences.

re2

modern regular expression syntax everywhere with a painless upgrade path [Moved to: https://github.com/SonOfLilit/kleenexp] (by sonoflilit)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
safe-regex-rs re2
4 1
- 34
- -
- 7.8
- over 2 years ago
Python
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

safe-regex-rs

Posts with mentions or reviews of safe-regex-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-22.
  • Contention on multi-threaded regex matching
    3 projects | /r/rust | 22 Oct 2022
    I added the article's benchmark to the safe-regex benchmarks. I reduced the number of strings checked from 100M to 1M so the benchmark runs in a few seconds. Here are the results running on my 2018 MBP 4-core i5-8259U. You can see that regex is faster on large strings and safe-regex is faster on small strings and in heavy multi-threaded use.
  • Let's Build a Regex Engine
    9 projects | news.ycombinator.com | 26 May 2021
    The matcher for "(abc)d" [2] is a more thorough example.

    [0] https://gitlab.com/leonhard-llc/safe-regex-rs/-/blob/79106c0...

    [1] https://gitlab.com/leonhard-llc/safe-regex-rs/-/blob/79106c0...

    [2] https://gitlab.com/leonhard-llc/safe-regex-rs/-/blob/79106c0...

re2

Posts with mentions or reviews of re2. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-26.
  • Let's Build a Regex Engine
    9 projects | news.ycombinator.com | 26 May 2021
    I have a (mostly abandoned, since I couldn't find an organization to cbe early adopter in the time I gave myself to work on it) side project with this aim. I spent a lot of time thinking about language design, from the perspective of enabling adoption of a new language when an existing one has so much network effect:

    https://www.slideshare.net/AurSaraf/re3-modern-regex-syntax-...

    https://github.com/sonoflilit/re2

What are some alternatives?

When comparing safe-regex-rs and re2 you can also consider the following projects:

regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

Scala.js - Scala.js, the Scala to JavaScript compiler

reng - Simple toy regex engine implemented using backtracking algorithm and continuations.

zorex - Zorex: the omnipotent regex engine

caniuse - Raw browser/feature support data from caniuse.com

rust - Empowering everyone to build reliable and efficient software.