3 ms·
Great! I enjoyed reading through, and I'm going to come back later and read a little more carefully. If anyone knows (to let me be lazy), is this the same rege
by CJefferson 1y ago
Great! I enjoyed reading through, and I'm going to come back later and read a little more carefully.
If anyone knows (to let me be lazy), is this the same regex engine used by ripgrep? Or is that an independent implementation?
- cbarrick 1y agoSame engine as ripgrep
- karelpeeters 1y agoYes, the `regex` crate is also the regex engine used by ripgrep, both were developed by https://github.com/burntsushi https://github.com/burntsushi.
- shilangyu 1y agoAs others have pointed out, the regex engine is the same so the benefits would trickle downstream. For example, VSCode also uses ripgrep and therefore the rust-lang/regex engine.
- burntsushi 1y agoripgrep plugged this gap a long time ago by providing PCRE2 support.
- shilangyu 1y agoPCRE2 supports only bounded length lookbehinds. It is true, it is not a big improvement to have unbounded ones in rust-lang/regex, but it still feels like something.
- burntsushi 1y agoPretty minor IMO. And PCRE2 supports lots of other stuff beside look-behinds.