Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



Yes, the `regex` crate is also the regex engine used by ripgrep, both were developed by https://github.com/burntsushi.


As 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.


ripgrep plugged this gap a long time ago by providing PCRE2 support.


PCRE2 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.


Pretty minor IMO. And PCRE2 supports lots of other stuff beside look-behinds.


Same engine as ripgrep




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: