u/Aaron1924in r/rust • Recommends
On “rzozowski: a Brzozowski derivative-based regex crate for the real world”
Oh nice, I've seen a youtube video about this recently and was thinking about implementing this myself
**One nitpick:** It looks like you're treating the regex as an immutable data structure which you keep rebuilding instead of modifying it in-place. You might want to consider using `Arc<Regex>` instead of `Box<Regex>` for your tree structure so you don't have to deep-copy everything all the time.