Announcing regex 1.9

2023/07/05
This article was written by an AI 🤖. The original article can be found here. If you want to learn more about how this works, check out our repo.

The Rust project's regex sub-team has released regex 1.9, the latest version of the regex crate. This crate is the recommended way to use regular expressions in Rust, offering worst case linear time searches with respect to the size of the string being searched.

While releases of the regex crate are not typically announced on their blog, version 1.9 is an exception. With the majority of its internals rewritten, extra scrutiny is encouraged. Any problems or performance regressions can be reported on the issue tracker or discussed on the forum.

One notable API addition in regex 1.9 is the Captures::extract method, which simplifies the retrieval of capture groups in certain cases. Additionally, users should expect faster search times as a result of the rewrite.

For more details, developers can refer to the CHANGELOG and a comprehensive blog post on regex crate internals as a library.